Home
last modified time | relevance | path

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

123

/fs/
Dfile.c245 static inline void __set_close_on_exec(int fd, struct fdtable *fdt) in __set_close_on_exec()
250 static inline void __clear_close_on_exec(int fd, struct fdtable *fdt) in __clear_close_on_exec()
256 static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) in __set_open_fd()
264 static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) in __clear_open_fd()
500 unsigned int fd; in __alloc_fd() local
566 static void __put_unused_fd(struct files_struct *files, unsigned int fd) in __put_unused_fd()
574 void put_unused_fd(unsigned int fd) in put_unused_fd()
604 void __fd_install(struct files_struct *files, unsigned int fd, in __fd_install()
625 void fd_install(unsigned int fd, struct file *file) in fd_install()
635 int __close_fd(struct files_struct *files, unsigned fd) in __close_fd()
[all …]
Dsync.c154 SYSCALL_DEFINE1(syncfs, int, fd) in SYSCALL_DEFINE1() argument
213 static int do_fsync(unsigned int fd, int datasync) in do_fsync()
226 SYSCALL_DEFINE1(fsync, unsigned int, fd) in SYSCALL_DEFINE1() argument
231 SYSCALL_DEFINE1(fdatasync, unsigned int, fd) in SYSCALL_DEFINE1() argument
283 SYSCALL_DEFINE4(sync_file_range, int, fd, loff_t, offset, loff_t, nbytes, in SYSCALL_DEFINE4() argument
369 SYSCALL_DEFINE4(sync_file_range2, int, fd, unsigned int, flags, in SYSCALL_DEFINE4() argument
Dfcntl.c32 static int setfl(int fd, struct file * filp, unsigned long arg) in setfl()
247 static long do_fcntl(int fd, unsigned int cmd, unsigned long arg, in do_fcntl()
360 SYSCALL_DEFINE3(fcntl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) in SYSCALL_DEFINE3() argument
384 SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd, in SYSCALL_DEFINE3() argument
454 int fd, int reason, int group) in send_sigio_to_task()
494 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio()
627 struct fasync_struct *fasync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, s… in fasync_insert_entry()
661 static int fasync_add_entry(int fd, struct file *filp, struct fasync_struct **fapp) in fasync_add_entry()
690 int fasync_helper(int fd, struct file * filp, int on, struct fasync_struct **fapp) in fasync_helper()
Dread_write.c264 static inline struct fd fdget_pos(int fd) in fdget_pos()
276 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence) in SYSCALL_DEFINE3() argument
295 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence) in COMPAT_SYSCALL_DEFINE3() argument
302 SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high, in SYSCALL_DEFINE5() argument
565 SYSCALL_DEFINE3(read, unsigned int, fd, char __user *, buf, size_t, count) in SYSCALL_DEFINE3() argument
580 SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, in SYSCALL_DEFINE3() argument
597 SYSCALL_DEFINE4(pread64, unsigned int, fd, char __user *, buf, in SYSCALL_DEFINE4() argument
617 SYSCALL_DEFINE4(pwrite64, unsigned int, fd, const char __user *, buf, in SYSCALL_DEFINE4() argument
855 SYSCALL_DEFINE3(readv, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE3() argument
875 SYSCALL_DEFINE3(writev, unsigned long, fd, const struct iovec __user *, vec, in SYSCALL_DEFINE3() argument
[all …]
Dcompat_ioctl.c118 static int w_long(unsigned int fd, unsigned int cmd, in w_long()
142 static int do_video_get_event(unsigned int fd, unsigned int cmd, in do_video_get_event()
172 static int do_video_stillpicture(unsigned int fd, unsigned int cmd, in do_video_stillpicture()
203 static int do_video_set_spu_palette(unsigned int fd, unsigned int cmd, in do_video_set_spu_palette()
279 static int sg_ioctl_trans(unsigned int fd, unsigned int cmd, in sg_ioctl_trans()
383 static int sg_grt_trans(unsigned int fd, unsigned int cmd, struct in sg_grt_trans()
415 static int ppp_sock_fprog_ioctl_trans(unsigned int fd, unsigned int cmd, in ppp_sock_fprog_ioctl_trans()
454 static int ppp_gidle(unsigned int fd, unsigned int cmd, in ppp_gidle()
475 static int ppp_scompress(unsigned int fd, unsigned int cmd, in ppp_scompress()
515 static int mt_ioctl_trans(unsigned int fd, unsigned int cmd, void __user *argp) in mt_ioctl_trans()
[all …]
Dopen.c161 static long do_sys_ftruncate(unsigned int fd, loff_t length, int small) in do_sys_ftruncate()
210 SYSCALL_DEFINE2(ftruncate, unsigned int, fd, unsigned long, length) in SYSCALL_DEFINE2() argument
216 COMPAT_SYSCALL_DEFINE2(ftruncate, unsigned int, fd, compat_ulong_t, length) in COMPAT_SYSCALL_DEFINE2() argument
229 SYSCALL_DEFINE2(ftruncate64, unsigned int, fd, loff_t, length) in SYSCALL_DEFINE2() argument
329 SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) in SYSCALL_DEFINE4() argument
474 SYSCALL_DEFINE1(fchdir, unsigned int, fd) in SYSCALL_DEFINE1() argument
563 SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode) in SYSCALL_DEFINE2() argument
684 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
1045 int fd = build_open_flags(flags, mode, &op); in do_sys_open() local
1131 SYSCALL_DEFINE1(close, unsigned int, fd) in SYSCALL_DEFINE1() argument
Dstatfs.c95 int fd_statfs(int fd, struct kstatfs *st) in fd_statfs()
193 SYSCALL_DEFINE2(fstatfs, unsigned int, fd, struct statfs __user *, buf) in SYSCALL_DEFINE2() argument
202 SYSCALL_DEFINE3(fstatfs64, unsigned int, fd, size_t, sz, struct statfs64 __user *, buf) in SYSCALL_DEFINE3() argument
Deventfd.c322 struct file *eventfd_fget(int fd) in eventfd_fget()
347 struct eventfd_ctx *eventfd_ctx_fdget(int fd) in eventfd_ctx_fdget()
422 int fd, error; in SYSCALL_DEFINE2() local
/fs/hfsplus/
Dbfind.c14 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init()
43 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit()
54 struct hfs_find_data *fd, in hfs_find_1st_rec_by_cnid()
92 struct hfs_find_data *fd, in hfs_find_rec_by_key()
113 int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd, in __hfs_brec_find()
163 int hfs_brec_find(struct hfs_find_data *fd, search_strategy_t do_key_compare) in hfs_brec_find()
217 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read()
230 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto()
Dattributes.c137 const char *name, struct hfs_find_data *fd) in hfsplus_find_attr()
172 struct hfs_find_data fd; in hfsplus_attr_exists() local
198 struct hfs_find_data fd; in hfsplus_create_attr() local
266 struct hfs_find_data *fd) in __hfsplus_delete_attr()
310 struct hfs_find_data fd; in hfsplus_delete_attr() local
356 struct hfs_find_data fd; in hfsplus_delete_all_attrs() local
Dextents.c87 struct hfs_find_data *fd) in __hfsplus_ext_write_extent()
133 struct hfs_find_data fd; in hfsplus_ext_write_extent_locked() local
155 static inline int __hfsplus_ext_read_extent(struct hfs_find_data *fd, in __hfsplus_ext_read_extent()
176 static inline int __hfsplus_ext_cache_extent(struct hfs_find_data *fd, in __hfsplus_ext_cache_extent()
208 struct hfs_find_data fd; in hfsplus_ext_read_extent() local
395 struct hfs_find_data fd; in hfsplus_free_fork() local
541 struct hfs_find_data fd; in hfsplus_file_truncate() local
Dbrec.c62 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()
233 static struct hfs_bnode *hfs_bnode_split(struct hfs_find_data *fd) in hfs_bnode_split()
354 static int hfs_brec_update_parent(struct hfs_find_data *fd) in hfs_brec_update_parent()
Dcatalog.c194 struct hfs_find_data *fd) in hfsplus_find_cat()
256 struct hfs_find_data fd; in hfsplus_create_cat() local
332 struct hfs_find_data fd; in hfsplus_delete_cat() local
Dxattr.c453 struct hfs_find_data fd; in hfsplus_getxattr_finder_info() local
502 struct hfs_find_data fd; in __hfsplus_getxattr() local
624 struct hfs_find_data fd; in hfsplus_listxattr_finder_info() local
692 struct hfs_find_data fd; in hfsplus_listxattr() local
/fs/hfs/
Dbfind.c14 int hfs_find_init(struct hfs_btree *tree, struct hfs_find_data *fd) in hfs_find_init()
43 void hfs_find_exit(struct hfs_find_data *fd) in hfs_find_exit()
54 int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd) in __hfs_brec_find()
106 int hfs_brec_find(struct hfs_find_data *fd) in hfs_brec_find()
160 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read()
173 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.c64 int hfs_brec_insert(struct hfs_find_data *fd, void *entry, int entry_len) in hfs_brec_insert()
176 int hfs_brec_remove(struct hfs_find_data *fd) in hfs_brec_remove()
230 static struct hfs_bnode *hfs_bnode_split(struct hfs_find_data *fd) in hfs_bnode_split()
351 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.c20 struct hfs_find_data fd; in hfs_setxattr() local
63 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.c34 int fd = proc_fd(m->private); in seq_show() local
89 int fd; in tid_fd_revalidate() local
161 int fd = proc_fd(d_inode(dentry)); in proc_fd_link() local
182 unsigned fd = (unsigned long)ptr; in proc_fd_instantiate() local
215 unsigned fd = name_to_int(&dentry->d_name); in proc_lookupfd_common() local
234 unsigned int fd; in proc_readfd_common() local
320 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.c81 struct jffs2_full_dirent *fd = NULL, *fd_list; in jffs2_lookup() local
122 struct jffs2_full_dirent *fd; in jffs2_readdir() local
285 struct jffs2_full_dirent *fd; in jffs2_symlink() local
447 struct jffs2_full_dirent *fd; in jffs2_mkdir() local
587 struct jffs2_full_dirent *fd; in jffs2_rmdir() local
618 struct jffs2_full_dirent *fd; in jffs2_mknod() local
774 struct jffs2_full_dirent *fd; in jffs2_rename() local
Dbuild.c55 struct jffs2_full_dirent *fd; in jffs2_build_inode_pass1() local
102 struct jffs2_full_dirent *fd; in jffs2_build_filesystem() local
243 struct jffs2_full_dirent *fd; in jffs2_build_remove_unlinked_inode() local
Dwrite.c209 struct jffs2_full_dirent *fd; in jffs2_write_dirent() local
446 struct jffs2_full_dirent *fd; in jffs2_do_create() local
551 struct jffs2_full_dirent *fd; in jffs2_do_unlink() local
671 struct jffs2_full_dirent *fd; in jffs2_do_link() local

123