mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
signal/timer/event fds: anonymous inode source
This patch add an anonymous inode source, to be used for files that need and inode only in order to create a file*. We do not care of having an inode for each file, and we do not even care of having different names in the associated dentries (dentry names will be same for classes of file*). This allow code reuse, and will be used by epoll, signalfd and timerfd (and whatever else there'll be). Signed-off-by: Davide Libenzi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
325aa33da7
commit
5dc8bf8132
5 changed files with 228 additions and 0 deletions
10
init/Kconfig
10
init/Kconfig
|
|
@ -475,9 +475,19 @@ config FUTEX
|
|||
support for "fast userspace mutexes". The resulting kernel may not
|
||||
run glibc-based applications correctly.
|
||||
|
||||
config ANON_INODES
|
||||
bool "Enable anonymous inode source" if EMBEDDED
|
||||
default y
|
||||
help
|
||||
Anonymous inode source for pseudo-files like epoll, signalfd,
|
||||
timerfd and eventfd.
|
||||
|
||||
If unsure, say Y.
|
||||
|
||||
config EPOLL
|
||||
bool "Enable eventpoll support" if EMBEDDED
|
||||
default y
|
||||
depends on ANON_INODES
|
||||
help
|
||||
Disabling this option will cause the kernel to be built without
|
||||
support for epoll family of system calls.
|
||||
|
|
|
|||
Loading…
Reference in a new issue