mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
flag parameters: anon_inode_getfd extension
This patch just extends the anon_inode_getfd interface to take an additional parameter with a flag value. The flag value is passed on to get_unused_fd_flags in anticipation for a use with the O_CLOEXEC flag. No actual semantic changes here, the changed callers all pass 0 for now. [akpm@linux-foundation.org: KVM fix] Signed-off-by: Ulrich Drepper <drepper@redhat.com> Acked-by: Davide Libenzi <davidel@xmailserver.org> Cc: Michael Kerrisk <mtk.manpages@googlemail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c019bbc612
commit
7d9dbca342
7 changed files with 13 additions and 11 deletions
|
|
@ -9,7 +9,7 @@
|
|||
#define _LINUX_ANON_INODES_H
|
||||
|
||||
int anon_inode_getfd(const char *name, const struct file_operations *fops,
|
||||
void *priv);
|
||||
void *priv, int flags);
|
||||
|
||||
#endif /* _LINUX_ANON_INODES_H */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue