Changeset 80bcaed in mainline for kernel/generic/include/console/kconsole.h
- Timestamp:
- 2007-02-03T13:22:24Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f619ec11
- Parents:
- fa8e7d2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/kconsole.h
rfa8e7d2 r80bcaed 46 46 ARG_TYPE_INT, 47 47 ARG_TYPE_STRING, 48 ARG_TYPE_VAR /**< Variable type - either symbol or string */ 48 /** Variable type - either symbol or string. */ 49 ARG_TYPE_VAR 49 50 } cmd_arg_type_t; 50 51 51 52 /** Structure representing one argument of kconsole command line. */ 52 53 typedef struct { 53 cmd_arg_type_t type; /**< Type descriptor. */ 54 void *buffer; /**< Buffer where to store data. */ 55 size_t len; /**< Size of the buffer. */ 56 unative_t intval; /**< Integer value */ 57 cmd_arg_type_t vartype; /**< Resulting type of variable arg */ 54 /** Type descriptor. */ 55 cmd_arg_type_t type; 56 /** Buffer where to store data. */ 57 void *buffer; 58 /** Size of the buffer. */ 59 size_t len; 60 /** Integer value. */ 61 unative_t intval; 62 /** Resulting type of variable arg */ 63 cmd_arg_type_t vartype; 58 64 } cmd_arg_t; 59 65 60 66 /** Structure representing one kconsole command. */ 61 67 typedef struct { 62 link_t link; /**< Command list link. */ 63 SPINLOCK_DECLARE(lock); /**< This lock protects everything below. */ 64 const char *name; /**< Command name. */ 65 const char *description; /**< Textual description. */ 66 int (* func)(cmd_arg_t *); /**< Function implementing the command. */ 67 count_t argc; /**< Number of arguments. */ 68 cmd_arg_t *argv; /**< Argument vector. */ 69 void (* help)(void); /**< Function for printing detailed help. */ 68 /** Command list link. */ 69 link_t link; 70 /** This lock protects everything below. */ 71 SPINLOCK_DECLARE(lock); 72 /** Command name. */ 73 const char *name; 74 /** Textual description. */ 75 const char *description; 76 /** Function implementing the command. */ 77 int (* func)(cmd_arg_t *); 78 /** Number of arguments. */ 79 count_t argc; 80 /** Argument vector. */ 81 cmd_arg_t *argv; 82 /** Function for printing detailed help. */ 83 void (* help)(void); 70 84 } cmd_info_t; 71 85
Note:
See TracChangeset
for help on using the changeset viewer.