kernel: separate state for trace-deferred syscalls
[minix.git] / lib / libbdev / proto.h
blob24f11d089240262be772a6e3ead2ba52672d0e49
1 #ifndef _BDEV_PROTO_H
2 #define _BDEV_PROTO_H
4 /* bdev.c */
5 extern void bdev_callback_asyn(bdev_call_t *call, int result);
6 extern int bdev_restart_asyn(bdev_call_t *call);
8 /* driver.c */
9 extern void bdev_driver_init(void);
10 extern void bdev_driver_clear(dev_t dev);
11 extern endpoint_t bdev_driver_set(dev_t dev, char *label);
12 extern endpoint_t bdev_driver_get(dev_t dev);
13 extern endpoint_t bdev_driver_update(dev_t dev);
15 /* call.c */
16 extern bdev_call_t *bdev_call_alloc(int count);
17 extern void bdev_call_free(bdev_call_t *call);
18 extern bdev_call_t *bdev_call_get(bdev_id_t id);
19 extern bdev_call_t *bdev_call_find(dev_t dev);
20 extern bdev_call_t *bdev_call_iter_maj(dev_t dev, bdev_call_t *last,
21 bdev_call_t **next);
23 /* ipc.c */
24 extern void bdev_update(dev_t dev, char *label);
25 extern int bdev_senda(dev_t dev, const message *m_orig, bdev_id_t num);
26 extern int bdev_sendrec(dev_t dev, const message *m_orig);
28 /* minor.c */
29 extern int bdev_minor_reopen(dev_t dev);
30 extern void bdev_minor_add(dev_t dev, int access);
31 extern void bdev_minor_del(dev_t dev);
33 #endif /* _BDEV_PROTO_H */