Project

General

Profile

Statistics
| Revision:

root / lab4 / .minix-src / include / minix / blockdriver_mt.h @ 13

History | View | Annotate | Download (568 Bytes)

1 13 up20180614
#ifndef _MINIX_BLOCKDRIVER_MT_H
2
#define _MINIX_BLOCKDRIVER_MT_H
3
4
#define BLOCKDRIVER_MT_API 1        /* do not expose the singlethreaded API */
5
#include <minix/blockdriver.h>
6
7
#define BLOCKDRIVER_MAX_DEVICES                32
8
9
void blockdriver_mt_task(struct blockdriver *driver_tab);
10
void blockdriver_mt_sleep(void);
11
void blockdriver_mt_wakeup(thread_id_t id);
12
void blockdriver_mt_terminate(void);
13
void blockdriver_mt_set_workers(device_id_t id, unsigned int workers);
14
thread_id_t blockdriver_mt_get_tid(void);
15
16
void blockdriver_mt_support_lu(void);
17
18
#endif /* _MINIX_BLOCKDRIVER_MT_H */