minix/minix/servers/devman/proto.h
David van Moolenbroek 5eefd0fec2 libvtreefs: API changes/extensions, part 1
- 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
2014-11-12 12:13:38 +00:00

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 */