Changeset 42d3be3 in mainline for kernel/generic/include/sysinfo/sysinfo.h
- Timestamp:
- 2006-07-28T23:03:42Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 764c302
- Parents:
- a0c12f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/sysinfo/sysinfo.h
ra0c12f5 r42d3be3 27 27 */ 28 28 29 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 35 35 #include <arch/types.h> 36 36 37 typedef union sysinfo_item_val 38 { 37 typedef union sysinfo_item_val { 39 38 unative_t val; 40 39 void *fn; 41 } sysinfo_item_val_t;40 } sysinfo_item_val_t; 42 41 43 typedef struct sysinfo_item 44 { 42 typedef struct sysinfo_item { 45 43 char *name; 46 union 47 { 44 union { 48 45 unative_t val; 49 46 void *fn; 50 } val;47 } val; 51 48 52 union 53 { 49 union { 54 50 struct sysinfo_item *table; 55 51 void *fn; 56 } subinfo;52 } subinfo; 57 53 58 54 struct sysinfo_item *next; 59 55 int val_type; 60 56 int subinfo_type; 61 } sysinfo_item_t;57 } sysinfo_item_t; 62 58 63 59 #define SYSINFO_VAL_VAL 0 … … 73 69 typedef unative_t (*sysinfo_subinfo_fn_t)(const char *subname); 74 70 75 typedef struct sysinfo_rettype 76 { 71 typedef struct sysinfo_rettype { 77 72 unative_t val; 78 73 unative_t valid; 79 } sysinfo_rettype_t;74 } sysinfo_rettype_t; 80 75 81 76 void sysinfo_set_item_val(const char *name,sysinfo_item_t **root,unative_t val); … … 89 84 unative_t sys_sysinfo_value(unative_t ptr,unative_t len); 90 85 91 92 93 /** @} 86 /** @} 94 87 */ 95
Note:
See TracChangeset
for help on using the changeset viewer.