2 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #ifndef __MCONSOLE_KERN_H__
7 #define __MCONSOLE_KERN_H__
9 #include <linux/list.h>
12 struct mconsole_entry
{
13 struct list_head list
;
14 struct mc_request request
;
17 /* All these methods are called in process context. */
19 struct list_head list
;
21 int (*config
)(char *, char **);
22 int (*get_config
)(char *, char *, int, char **);
23 int (*id
)(char **, int *, int *);
24 int (*remove
)(int, char **);
27 #define CONFIG_CHUNK(str, size, current, chunk, end) \
29 current += strlen(chunk); \
34 str += strlen(chunk); \
40 #ifdef CONFIG_MCONSOLE
42 extern void mconsole_register_dev(struct mc_device
*new);
46 static inline void mconsole_register_dev(struct mc_device
*new)