Home
last modified time | relevance | path

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

123

/fs/
Dfile.c233 static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) in __set_close_on_exec()
238 static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) in __clear_close_on_exec()
244 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd()
252 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
488 unsigned int fd; in __alloc_fd() local
554 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
562 void put_unused_fd(unsigned int fd) in put_unused_fd()
592 void __fd_install(struct files_struct *files, unsigned int fd, in __fd_install()
613 void fd_install(unsigned int fd, struct file *file) in fd_install()
623 int __close_fd(struct files_struct *files, unsigned fd) in __close_fd()
[all …]
Dsync.c155 SYSCALL_DEFINE1(syncfs, int, fd) in SYSCALL_DEFINE1() argument
214 static int do_fsync(unsigned int fd, int datasync) in do_fsync()
227 SYSCALL_DEFINE1(fsync, unsigned int, fd) in SYSCALL_DEFINE1() argument
232 SYSCALL_DEFINE1(fdatasync, unsigned int, fd) in SYSCALL_DEFINE1() argument
284 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
365 SYSCALL_DEFINE4(sync_file_range2, int, fd, unsigned int, flags, in SYSCALL_DEFINE4() argument
Dfcntl.c35 static int setfl(int fd, struct file * filp, unsigned long arg) in setfl()
322 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl()
448 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
472 SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in SYSCALL_DEFINE3() argument
610 COMPAT_SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in COMPAT_SYSCALL_DEFINE3() argument
675 COMPAT_SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, in COMPAT_SYSCALL_DEFINE3() argument
720 int fd, int reason, int group) in send_sigio_to_task()
771 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio()
904 struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, s… in fasync_insert_entry()
938 static int fasync_add_entry(int fd, struct file *filp, struct fasync_struct **fapp) in fasync_add_entry()
[all …]
Dread_write.c304 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence) in SYSCALL_DEFINE3() argument
323 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence) in COMPAT_SYSCALL_DEFINE3() argument
330 SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high, in SYSCALL_DEFINE5() argument
571 SYSCALL_DEFINE3(read, unsigned int, fd, char __user *, buf, size_t, count) in SYSCALL_DEFINE3() argument
586 SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, in SYSCALL_DEFINE3() argument
603 SYSCALL_DEFINE4(pread64, unsigned int, fd, char __user *, buf, in SYSCALL_DEFINE4() argument
623 SYSCALL_DEFINE4(pwrite64, unsigned int, fd, const char __user *, buf, in SYSCALL_DEFINE4() argument
1010 static ssize_t do_readv(unsigned long fd, const struct iovec __user *vec, in do_readv()
1030 static ssize_t do_writev(unsigned long fd, const struct iovec __user *vec, in do_writev()
1056 static ssize_t do_preadv(unsigned long fd, const struct iovec __user *vec, in do_preadv()
[all …]
Dstatfs.c99 int fd_statfs(int fd, struct kstatfs *st) in fd_statfs()
197 SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
206 SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
295 COMPAT_SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct compat_statfs __user *, buf) in COMPAT_SYSCALL_DEFINE2() argument
343 COMPAT_SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, compat_size_t, sz, struct compat_statfs64 __use… in COMPAT_SYSCALL_DEFINE3() argument
Dopen.c172 static long do_sys_ftruncate(unsigned int fd, loff_t length, int small) in do_sys_ftruncate()
222 SYSCALL_DEFINE2(ftruncate, unsigned int, fd, unsigned long, length) in SYSCALL_DEFINE2() argument
228 COMPAT_SYSCALL_DEFINE2(ftruncate, unsigned int, fd, compat_ulong_t, length) in COMPAT_SYSCALL_DEFINE2() argument
241 SYSCALL_DEFINE2(ftruncate64, unsigned int, fd, loff_t, length) in SYSCALL_DEFINE2() argument
345 SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) in SYSCALL_DEFINE4() argument
490 SYSCALL_DEFINE1(fchdir, unsigned int, fd) in SYSCALL_DEFINE1() argument
575 SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode) in SYSCALL_DEFINE2() argument
696 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
1081 int fd = build_open_flags(flags, mode, &op); in do_sys_open() local
1187 SYSCALL_DEFINE1(close, unsigned int, fd) in SYSCALL_DEFINE1() argument
Deventfd.c360 struct file *eventfd_fget(int fd) in eventfd_fget()
385 struct eventfd_ctx *eventfd_ctx_fdget(int fd) in eventfd_ctx_fdget()
460 int fd, error; in SYSCALL_DEFINE2() local
Dreaddir.c159 SYSCALL_DEFINE3(old_readdir, unsigned int, fd, in SYSCALL_DEFINE3() argument
250 SYSCALL_DEFINE3(getdents, unsigned int, fd, in SYSCALL_DEFINE3() argument
336 SYSCALL_DEFINE3(getdents64, unsigned int, fd, in SYSCALL_DEFINE3() argument
418 COMPAT_SYSCALL_DEFINE3(old_readdir, unsigned int, fd, in COMPAT_SYSCALL_DEFINE3() argument
500 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()
307 struct hfs_find_data fd; in hfsplus_delete_attr() local
353 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
396 struct hfs_find_data fd; in hfsplus_free_fork() local
542 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()
178 int hfs_brec_remove(struct hfs_find_data *fd) in hfs_brec_remove()
234 static struct hfs_bnode *hfs_bnode_split(struct hfs_find_data *fd) in hfs_bnode_split()
355 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.c450 struct hfs_find_data fd; in hfsplus_getxattr_finder_info() local
499 struct hfs_find_data fd; in __hfsplus_getxattr() local
618 struct hfs_find_data fd; in hfsplus_listxattr_finder_info() local
686 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()
32 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit()
43 int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd) in __hfs_brec_find()
95 int hfs_brec_find(struct hfs_find_data *fd) in hfs_brec_find()
149 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read()
162 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
61 struct hfs_find_data fd; in hfs_readdir() local
/fs/proc/
Dfd.c35 unsigned int fd = proc_fd(m->private); in seq_show() local
89 unsigned int fd; in tid_fd_revalidate() local
152 unsigned int fd = proc_fd(d_inode(dentry)); in proc_fd_link() local
173 unsigned fd = (unsigned long)ptr; in proc_fd_instantiate() local
205 unsigned fd = name_to_int(&dentry->d_name); in proc_lookupfd_common() local
224 unsigned int fd; in proc_readfd_common() local
311 unsigned fd = (unsigned long)ptr; in proc_fdinfo_instantiate() 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
616 struct jffs2_full_dirent *fd; in jffs2_mknod() local
776 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
244 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

123