mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00: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 <davidel@xmailserver.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
325aa33da7
commit
5dc8bf8132
5 changed files with 228 additions and 0 deletions
16
include/linux/anon_inodes.h
Normal file
16
include/linux/anon_inodes.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* include/linux/anon_inodes.h
|
||||
*
|
||||
* Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _LINUX_ANON_INODES_H
|
||||
#define _LINUX_ANON_INODES_H
|
||||
|
||||
int anon_inode_getfd(int *pfd, struct inode **pinode, struct file **pfile,
|
||||
const char *name, const struct file_operations *fops,
|
||||
void *priv);
|
||||
|
||||
#endif /* _LINUX_ANON_INODES_H */
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue