![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 0003 #ifndef __PSTORE_BLK_H_ 0004 #define __PSTORE_BLK_H_ 0005 0006 #include <linux/types.h> 0007 #include <linux/pstore.h> 0008 #include <linux/pstore_zone.h> 0009 0010 /** 0011 * struct pstore_device_info - back-end pstore/blk driver structure. 0012 * 0013 * @flags: Refer to macro starting with PSTORE_FLAGS defined in 0014 * linux/pstore.h. It means what front-ends this device support. 0015 * Zero means all backends for compatible. 0016 * @zone: The struct pstore_zone_info details. 0017 * 0018 */ 0019 struct pstore_device_info { 0020 unsigned int flags; 0021 struct pstore_zone_info zone; 0022 }; 0023 0024 int register_pstore_device(struct pstore_device_info *dev); 0025 void unregister_pstore_device(struct pstore_device_info *dev); 0026 0027 /** 0028 * struct pstore_blk_config - the pstore_blk backend configuration 0029 * 0030 * @device: Name of the desired block device 0031 * @max_reason: Maximum kmsg dump reason to store to block device 0032 * @kmsg_size: Total size of for kmsg dumps 0033 * @pmsg_size: Total size of the pmsg storage area 0034 * @console_size: Total size of the console storage area 0035 * @ftrace_size: Total size for ftrace logging data (for all CPUs) 0036 */ 0037 struct pstore_blk_config { 0038 char device[80]; 0039 enum kmsg_dump_reason max_reason; 0040 unsigned long kmsg_size; 0041 unsigned long pmsg_size; 0042 unsigned long console_size; 0043 unsigned long ftrace_size; 0044 }; 0045 0046 /** 0047 * pstore_blk_get_config - get a copy of the pstore_blk backend configuration 0048 * 0049 * @info: The sturct pstore_blk_config to be filled in 0050 * 0051 * Failure returns negative error code, and success returns 0. 0052 */ 0053 int pstore_blk_get_config(struct pstore_blk_config *info); 0054 0055 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |