Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 78) sorted by relevance

1234

/fs/
Dfile.c249 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec()
254 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec()
260 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd()
268 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
527 unsigned int fd; in __alloc_fd() local
598 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
606 void put_unused_fd(unsigned int fd) in put_unused_fd()
636 void __fd_install(struct files_struct *files, unsigned int fd, in __fd_install()
664 void fd_install(unsigned int fd, struct file *file) in fd_install()
671 static struct file *pick_file(struct files_struct *files, unsigned fd) in pick_file()
[all …]
Dsync.c163 SYSCALL_DEFINE1(syncfs, int, fd) in SYSCALL_DEFINE1() argument
220 static int do_fsync(unsigned int fd, int datasync) in do_fsync()
233 SYSCALL_DEFINE1(fsync, unsigned int, fd) in SYSCALL_DEFINE1() argument
238 SYSCALL_DEFINE1(fdatasync, unsigned int, fd) in SYSCALL_DEFINE1() argument
370 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range()
385 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
393 SYSCALL_DEFINE4(sync_file_range2, int, fd, unsigned int, flags, in SYSCALL_DEFINE4() argument
Dread_write.c304 static off_t ksys_lseek(unsigned int fd, off_t offset, unsigned int whence) in ksys_lseek()
322 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence) in SYSCALL_DEFINE3() argument
328 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence) in COMPAT_SYSCALL_DEFINE3() argument
336 SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high, in SYSCALL_DEFINE5() argument
623 ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count) in ksys_read()
642 SYSCALL_DEFINE3(read, unsigned int, fd, char __user *, buf, size_t, count) in SYSCALL_DEFINE3() argument
647 ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count) in ksys_write()
667 SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, in SYSCALL_DEFINE3() argument
673 ssize_t ksys_pread64(unsigned int fd, char __user *buf, size_t count, in ksys_pread64()
693 SYSCALL_DEFINE4(pread64, unsigned int, fd, char __user *, buf, in SYSCALL_DEFINE4() argument
[all …]
Dfcntl.c35 static int setfl(int fd, struct file * filp, unsigned long arg) in setfl()
330 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl()
456 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
480 SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in SYSCALL_DEFINE3() argument
618 static long do_compat_fcntl64(unsigned int fd, unsigned int cmd, in do_compat_fcntl64()
683 COMPAT_SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in COMPAT_SYSCALL_DEFINE3() argument
689 COMPAT_SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, in COMPAT_SYSCALL_DEFINE3() argument
734 int fd, int reason, enum pid_type type) in send_sigio_to_task()
788 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio()
927 struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, s… in fasync_insert_entry()
[all …]
Dstatfs.c115 int fd_statfs(int fd, struct kstatfs *st) in fd_statfs()
213 SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
222 SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
311 COMPAT_SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() argument
364 int kcompat_sys_fstatfs64(unsigned int fd, compat_size_t sz, struct compat_statfs64 __user * buf) in kcompat_sys_fstatfs64()
378 COMPAT_SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, compat_size_t, sz, struct compat_statfs64 __use… in COMPAT_SYSCALL_DEFINE3() argument
Dopen.c156 long do_sys_ftruncate(unsigned int fd, loff_t length, int small) in do_sys_ftruncate()
204 SYSCALL_DEFINE2(ftruncate, unsigned int, fd, unsigned long, length) in SYSCALL_DEFINE2() argument
210 COMPAT_SYSCALL_DEFINE2(ftruncate, unsigned int, fd, compat_ulong_t, length) in COMPAT_SYSCALL_DEFINE2() argument
223 SYSCALL_DEFINE2(ftruncate64, unsigned int, fd, loff_t, length) in SYSCALL_DEFINE2() argument
327 int ksys_fallocate(int fd, int mode, loff_t offset, loff_t len) in ksys_fallocate()
339 SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) in SYSCALL_DEFINE4() argument
512 SYSCALL_DEFINE1(fchdir, unsigned int, fd) in SYSCALL_DEFINE1() argument
602 SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode) in SYSCALL_DEFINE2() argument
747 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown()
759 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
[all …]
Dexec.c902 static struct file *do_open_execat(int fd, struct filename *name, int flags) in do_open_execat()
1498 static struct linux_binprm *alloc_bprm(int fd, struct filename *filename) in alloc_bprm()
1790 int fd, struct filename *filename, int flags) in bprm_execve()
1869 static int do_execveat_common(int fd, struct filename *filename, in do_execveat_common()
1959 int fd = AT_FDCWD; in kernel_execve() local
2018 static int do_execveat(int fd, struct filename *filename, in do_execveat()
2045 static int compat_do_execveat(int fd, struct filename *filename, in compat_do_execveat()
2095 int, fd, const char __user *, filename, in SYSCALL_DEFINE5() argument
2115 COMPAT_SYSCALL_DEFINE5(execveat, int, fd, in COMPAT_SYSCALL_DEFINE5() argument
Deventfd.c353 struct file *eventfd_fget(int fd) in eventfd_fget()
378 struct eventfd_ctx *eventfd_ctx_fdget(int fd) in eventfd_ctx_fdget()
416 int fd; in do_eventfd() local
Dreaddir.c180 SYSCALL_DEFINE3(old_readdir, unsigned int, fd, in SYSCALL_DEFINE3() argument
271 SYSCALL_DEFINE3(getdents, unsigned int, fd, in SYSCALL_DEFINE3() argument
354 SYSCALL_DEFINE3(getdents64, unsigned int, fd, in SYSCALL_DEFINE3() argument
438 COMPAT_SYSCALL_DEFINE3(old_readdir, unsigned int, fd, in COMPAT_SYSCALL_DEFINE3() argument
522 COMPAT_SYSCALL_DEFINE3(getdents, unsigned int, fd, in COMPAT_SYSCALL_DEFINE3() argument
/fs/hfsplus/
Dbfind.c15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init()
44 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit()
55 struct hfs_find_data *fd, in hfs_find_1st_rec_by_cnid()
93 struct hfs_find_data *fd, in hfs_find_rec_by_key()
114 int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd, in __hfs_brec_find()
164 int hfs_brec_find(struct hfs_find_data *fd, search_strategy_t do_key_compare) in hfs_brec_find()
218 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read()
231 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto()
Dattributes.c138 const char *name, struct hfs_find_data *fd) in hfsplus_find_attr()
173 struct hfs_find_data fd; in hfsplus_attr_exists() local
199 struct hfs_find_data fd; in hfsplus_create_attr() local
267 struct hfs_find_data *fd) in __hfsplus_delete_attr()
311 struct hfs_find_data fd; in hfsplus_delete_attr() local
357 struct hfs_find_data fd; in hfsplus_delete_all_attrs() local
Dextents.c88 struct hfs_find_data *fd) in __hfsplus_ext_write_extent()
134 struct hfs_find_data fd; in hfsplus_ext_write_extent_locked() local
156 static inline int __hfsplus_ext_read_extent(struct hfs_find_data *fd, in __hfsplus_ext_read_extent()
177 static inline int __hfsplus_ext_cache_extent(struct hfs_find_data *fd, in __hfsplus_ext_cache_extent()
209 struct hfs_find_data fd; in hfsplus_ext_read_extent() local
399 struct hfs_find_data fd; in hfsplus_free_fork() local
547 struct hfs_find_data fd; in hfsplus_file_truncate() local
Dbrec.c63 int hfs_brec_insert(struct hfs_find_data *fd, void *entry, int entry_len) in hfs_brec_insert()
179 int hfs_brec_remove(struct hfs_find_data *fd) in hfs_brec_remove()
235 static struct hfs_bnode *hfs_bnode_split(struct hfs_find_data *fd) in hfs_bnode_split()
356 static int hfs_brec_update_parent(struct hfs_find_data *fd) in hfs_brec_update_parent()
Dcatalog.c195 struct hfs_find_data *fd) in hfsplus_find_cat()
257 struct hfs_find_data fd; in hfsplus_create_cat() local
333 struct hfs_find_data fd; in hfsplus_delete_cat() local
/fs/hfs/
Dbfind.c15 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init()
44 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit()
55 int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd) in __hfs_brec_find()
107 int hfs_brec_find(struct hfs_find_data *fd) in hfs_brec_find()
161 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read()
174 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto()
Dextent.c110 static int __hfs_ext_write_extent(struct inode *inode, struct hfs_find_data *fd) in __hfs_ext_write_extent()
137 struct hfs_find_data fd; in hfs_ext_write_extent() local
150 static inline int __hfs_ext_read_extent(struct hfs_find_data *fd, struct hfs_extent *extent, in __hfs_ext_read_extent()
169 static inline int __hfs_ext_cache_extent(struct hfs_find_data *fd, struct inode *inode, u32 block) in __hfs_ext_cache_extent()
193 struct hfs_find_data fd; in hfs_ext_read_extent() local
289 struct hfs_find_data fd; in hfs_free_fork() local
479 struct hfs_find_data fd; in hfs_file_truncate() local
Dbrec.c65 int hfs_brec_insert(struct hfs_find_data *fd, void *entry, int entry_len) in hfs_brec_insert()
177 int hfs_brec_remove(struct hfs_find_data *fd) in hfs_brec_remove()
231 static struct hfs_bnode *hfs_bnode_split(struct hfs_find_data *fd) in hfs_bnode_split()
352 static int hfs_brec_update_parent(struct hfs_find_data *fd) in hfs_brec_update_parent()
Dcatalog.c84 struct hfs_find_data fd; in hfs_cat_create() local
188 struct hfs_find_data *fd) in hfs_cat_find_brec()
224 struct hfs_find_data fd; in hfs_cat_delete() local
Dattr.c25 struct hfs_find_data fd; in __hfs_setxattr() local
71 struct hfs_find_data fd; in __hfs_getxattr() local
Ddir.c24 struct hfs_find_data fd; in hfs_lookup() local
55 struct hfs_find_data fd; in hfs_readdir() local
/fs/hostfs/
Dhostfs_user.c41 int stat_file(const char *path, struct hostfs_stat *p, int fd) in stat_file()
72 int mode = 0, fd; in open_file() local
124 int read_file(int fd, unsigned long long *offset, char *buf, int len) in read_file()
135 int write_file(int fd, unsigned long long *offset, const char *buf, int len) in write_file()
146 int lseek_file(int fd, long long offset, int whence) in lseek_file()
156 int fsync_file(int fd, int datasync) in fsync_file()
169 int replace_file(int oldfd, int fd) in replace_file()
186 int fd; in file_create() local
194 int set_attr(const char *file, struct hostfs_iattr *attrs, int fd) in set_attr()
/fs/jffs2/
Ddir.c79 struct jffs2_full_dirent *fd = NULL, *fd_list; in jffs2_lookup() local
124 struct jffs2_full_dirent *fd; in jffs2_readdir() local
287 struct jffs2_full_dirent *fd; in jffs2_symlink() local
449 struct jffs2_full_dirent *fd; in jffs2_mkdir() local
589 struct jffs2_full_dirent *fd; in jffs2_rmdir() local
620 struct jffs2_full_dirent *fd; in jffs2_mknod() local
780 struct jffs2_full_dirent *fd; in jffs2_rename() local
Dbuild.c56 struct jffs2_full_dirent *fd; in jffs2_build_inode_pass1() local
103 struct jffs2_full_dirent *fd; in jffs2_build_filesystem() local
247 struct jffs2_full_dirent *fd; in jffs2_build_remove_unlinked_inode() local
Dwrite.c209 struct jffs2_full_dirent *fd; in jffs2_write_dirent() local
447 struct jffs2_full_dirent *fd; in jffs2_do_create() local
552 struct jffs2_full_dirent *fd; in jffs2_do_unlink() local
672 struct jffs2_full_dirent *fd; in jffs2_do_link() local
/fs/proc/
Dfd.c36 unsigned int fd = proc_fd(m->private); in seq_show() local
108 static bool tid_fd_mode(struct task_struct *task, unsigned fd, fmode_t *mode) in tid_fd_mode()
145 unsigned int fd; in tid_fd_revalidate() local
184 unsigned int fd = proc_fd(d_inode(dentry)); in proc_fd_link() local
203 unsigned fd; member
257 unsigned int fd; in proc_readfd_common() local

1234