Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 81) 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()
502 unsigned int fd; in alloc_fd() local
568 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
576 void put_unused_fd(unsigned int fd) in put_unused_fd()
602 void fd_install(unsigned int fd, struct file *file) in fd_install()
638 static struct file *pick_file(struct files_struct *files, unsigned fd) in pick_file()
663 int close_fd(unsigned fd) in close_fd()
[all …]
Dsync.c149 SYSCALL_DEFINE1(syncfs, int, fd) in SYSCALL_DEFINE1() argument
206 static int do_fsync(unsigned int fd, int datasync) in do_fsync()
219 SYSCALL_DEFINE1(fsync, unsigned int, fd) in SYSCALL_DEFINE1() argument
224 SYSCALL_DEFINE1(fdatasync, unsigned int, fd) in SYSCALL_DEFINE1() argument
356 int ksys_sync_file_range(int fd, loff_t offset, loff_t nbytes, in ksys_sync_file_range()
371 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
379 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
612 ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count) in ksys_read()
631 SYSCALL_DEFINE3(read, unsigned int, fd, char __user *, buf, size_t, count) in SYSCALL_DEFINE3() argument
636 ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count) in ksys_write()
656 SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, in SYSCALL_DEFINE3() argument
662 ssize_t ksys_pread64(unsigned int fd, char __user *buf, size_t count, in ksys_pread64()
682 SYSCALL_DEFINE4(pread64, unsigned int, fd, char __user *, buf, in SYSCALL_DEFINE4() argument
[all …]
Dfcntl.c36 static int setfl(int fd, struct file * filp, unsigned long arg) in setfl()
331 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl()
457 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
481 SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in SYSCALL_DEFINE3() argument
619 static long do_compat_fcntl64(unsigned int fd, unsigned int cmd, in do_compat_fcntl64()
684 COMPAT_SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in COMPAT_SYSCALL_DEFINE3() argument
690 COMPAT_SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, in COMPAT_SYSCALL_DEFINE3() argument
735 int fd, int reason, enum pid_type type) in send_sigio_to_task()
789 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio()
928 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
314 COMPAT_SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() argument
367 int kcompat_sys_fstatfs64(unsigned int fd, compat_size_t sz, struct compat_statfs64 __user * buf) in kcompat_sys_fstatfs64()
381 COMPAT_SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, compat_size_t, sz, struct compat_statfs64 __use… in COMPAT_SYSCALL_DEFINE3() argument
Dopen.c157 long do_sys_ftruncate(unsigned int fd, loff_t length, int small) in do_sys_ftruncate()
203 SYSCALL_DEFINE2(ftruncate, unsigned int, fd, unsigned long, length) in SYSCALL_DEFINE2() argument
209 COMPAT_SYSCALL_DEFINE2(ftruncate, unsigned int, fd, compat_ulong_t, length) in COMPAT_SYSCALL_DEFINE2() argument
222 SYSCALL_DEFINE2(ftruncate64, unsigned int, fd, loff_t, length) in SYSCALL_DEFINE2() argument
326 int ksys_fallocate(int fd, int mode, loff_t offset, loff_t len) in ksys_fallocate()
338 SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) in SYSCALL_DEFINE4() argument
511 SYSCALL_DEFINE1(fchdir, unsigned int, fd) in SYSCALL_DEFINE1() argument
602 SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode) in SYSCALL_DEFINE2() argument
754 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown()
766 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
[all …]
Dexec.c903 static struct file *do_open_execat(int fd, struct filename *name, int flags) in do_open_execat()
1520 static struct linux_binprm *alloc_bprm(int fd, struct filename *filename) in alloc_bprm()
1815 int fd, struct filename *filename, int flags) in bprm_execve()
1881 static int do_execveat_common(int fd, struct filename *filename, in do_execveat_common()
1971 int fd = AT_FDCWD; in kernel_execve() local
2030 static int do_execveat(int fd, struct filename *filename, in do_execveat()
2057 static int compat_do_execveat(int fd, struct filename *filename, in compat_do_execveat()
2107 int, fd, const char __user *, filename, in SYSCALL_DEFINE5() argument
2125 COMPAT_SYSCALL_DEFINE5(execveat, int, fd, in COMPAT_SYSCALL_DEFINE5() argument
Deventfd.c355 struct file *eventfd_fget(int fd) in eventfd_fget()
380 struct eventfd_ctx *eventfd_ctx_fdget(int fd) in eventfd_ctx_fdget()
418 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
Dxattr.c443 struct hfs_find_data fd; in hfsplus_getxattr_finder_info() local
492 struct hfs_find_data fd; in __hfsplus_getxattr() local
611 struct hfs_find_data fd; in hfsplus_listxattr_finder_info() local
679 struct hfs_find_data fd; in hfsplus_listxattr() 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
/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.c82 struct jffs2_full_dirent *fd = NULL, *fd_list; in jffs2_lookup() local
127 struct jffs2_full_dirent *fd; in jffs2_readdir() local
291 struct jffs2_full_dirent *fd; in jffs2_symlink() local
454 struct jffs2_full_dirent *fd; in jffs2_mkdir() local
594 struct jffs2_full_dirent *fd; in jffs2_rmdir() local
626 struct jffs2_full_dirent *fd; in jffs2_mknod() local
787 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.c35 unsigned int fd = proc_fd(m->private); in seq_show() local
109 static bool tid_fd_mode(struct task_struct *task, unsigned fd, fmode_t *mode) in tid_fd_mode()
141 unsigned int fd; in tid_fd_revalidate() local
174 unsigned int fd = proc_fd(d_inode(dentry)); in proc_fd_link() local
192 unsigned fd; member
245 unsigned int fd; in proc_readfd_common() local

1234