mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
init: add an init_dup helper
Add a simple helper to grab a reference to a file and install it at the next available fd, and switch the early init code over to it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
235e57935b
commit
f073531070
3 changed files with 17 additions and 4 deletions
|
@ -16,3 +16,4 @@ int __init init_unlink(const char *pathname);
|
|||
int __init init_mkdir(const char *pathname, umode_t mode);
|
||||
int __init init_rmdir(const char *pathname);
|
||||
int __init init_utimes(char *filename, struct timespec64 *ts);
|
||||
int __init init_dup(struct file *file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue