forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lkl: epoll_wait demultiplex between host and lkl
This commit implements a mixed file descriptors for a epoll_wait(2) call to properlly dispatch required (lkl)syscall. Previously it is prohibited when epoll_ctl(2) is called by an application, and returns an error (-LKL_EOPNOTSUPP) to the caller. Now this is relaxed by implementing dispatcher inside hijack library as librumphijack of NetBSD does. ref: https://github.com/NetBSD/src/blob/trunk/lib/librumphijack/hijack.c poll(2) or select(2) can follow this impementation but this would be a future patch. Signed-off-by: Hajime Tazaki <[email protected]>
- Loading branch information
Showing
3 changed files
with
237 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
#define _LKL_HIJACK_INIT_H | ||
|
||
extern int lkl_running; | ||
extern int dual_fds[]; | ||
|
||
#endif /*_LKL_HIJACK_INIT_H */ |