Rev 609 | Rev 788 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 609 | Rev 623 | ||
|---|---|---|---|
| Line 53... | Line 53... | ||
| 53 | }; |
53 | }; |
| 54 | 54 | ||
| 55 | /** Structure representing one kconsole command. */ |
55 | /** Structure representing one kconsole command. */ |
| 56 | struct cmd_info { |
56 | struct cmd_info { |
| 57 | link_t link; /**< Command list link. */ |
57 | link_t link; /**< Command list link. */ |
| 58 | spinlock_t lock; /**< This lock protects everything below. */ |
58 | SPINLOCK_DECLARE(lock); /**< This lock protects everything below. */ |
| 59 | const char *name; /**< Command name. */ |
59 | const char *name; /**< Command name. */ |
| 60 | const char *description; /**< Textual description. */ |
60 | const char *description; /**< Textual description. */ |
| 61 | int (* func)(cmd_arg_t *); /**< Function implementing the command. */ |
61 | int (* func)(cmd_arg_t *); /**< Function implementing the command. */ |
| 62 | count_t argc; /**< Number of arguments. */ |
62 | count_t argc; /**< Number of arguments. */ |
| 63 | cmd_arg_t *argv; /**< Argument vector. */ |
63 | cmd_arg_t *argv; /**< Argument vector. */ |