5eefd0fec2
- move primary I/O buffer into vtreefs; change read hook API; - add hooks for write, truncate, symlink, mknod, unlink, chmod/chown; - modernize message_hook; - change procfs, devman, gpio accordingly; Change-Id: I9f0669e41195efa3253032e95d93f0a78e9d68d6
23 lines
606 B
C
23 lines
606 B
C
#ifndef _DEVMAN_PROTO_H
|
|
#define _DEVMAN_PROTO_H
|
|
|
|
/* buf.c */
|
|
void buf_init(char *ptr, size_t len, off_t off);
|
|
void buf_printf(char *fmt, ...);
|
|
void buf_append(char *data, size_t len);
|
|
ssize_t buf_result(void);
|
|
|
|
/* message handlers */
|
|
int do_add_device(message *m);
|
|
int do_del_device(message *m);
|
|
int do_bind_device(message *m);
|
|
int do_unbind_device(message *m);
|
|
|
|
/* local helper functions */
|
|
void devman_init_devices();
|
|
struct devman_device* devman_find_device(int devid);
|
|
void devman_get_device(struct devman_device *dev);
|
|
void devman_put_device(struct devman_device *dev);
|
|
|
|
#endif /* _DEVMAN_PROTO_H */
|
|
|