1 #ifndef _DEVMAN_PROTO_H
2 #define _DEVMAN_PROTO_H
5 void buf_init(off_t start
, size_t len
);
6 void buf_printf(char *fmt
, ...);
7 void buf_append(char *data
, size_t len
);
8 size_t buf_get(char **ptr
);
10 /* message handlers */
11 int do_add_device(message
*m
);
12 int do_del_device(message
*m
);
13 int do_bind_device(message
*m
);
14 int do_unbind_device(message
*m
);
16 /* local helper functions */
17 void devman_init_devices();
18 struct devman_device
* devman_find_device(int devid
);
19 void devman_get_device(struct devman_device
*dev
);
20 void devman_put_device(struct devman_device
*dev
);
22 #endif /* _DEVMAN_PROTO_H */