diff options
| author | Erel Geron <[email protected]> | 2019-09-11 12:51:20 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2019-09-15 19:37:15 +0000 |
| commit | 5d38f324993f49d1226ec81efe045834b46cd85a (patch) | |
| tree | c5f412c7bbffa5d9778b13f37563805e69d5bfe6 /arch/um/include/shared/os.h | |
| parent | um: Use real DMA barriers (diff) | |
| download | kernel-5d38f324993f49d1226ec81efe045834b46cd85a.tar.gz kernel-5d38f324993f49d1226ec81efe045834b46cd85a.zip | |
um: drivers: Add virtio vhost-user driver
This module allows virtio devices to be used over a vhost-user socket.
Signed-off-by: Erel Geron <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'arch/um/include/shared/os.h')
| -rw-r--r-- | arch/um/include/shared/os.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/um/include/shared/os.h b/arch/um/include/shared/os.h index fa1909365666..d542dadcf22e 100644 --- a/arch/um/include/shared/os.h +++ b/arch/um/include/shared/os.h @@ -36,6 +36,8 @@ #define OS_LIB_PATH "/usr/lib/" #endif +#define OS_SENDMSG_MAX_FDS 8 + /* * types taken from stat_file() in hostfs_user.c * (if they are wrong here, they are wrong there...). @@ -176,6 +178,9 @@ extern unsigned os_major(unsigned long long dev); extern unsigned os_minor(unsigned long long dev); extern unsigned long long os_makedev(unsigned major, unsigned minor); extern int os_falloc_punch(int fd, unsigned long long offset, int count); +extern int os_eventfd(unsigned int initval, int flags); +extern int os_sendmsg_fds(int fd, const void *buf, unsigned int len, + const int *fds, unsigned int fds_num); /* start_up.c */ extern void os_early_checks(void); |
