Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 4449) sorted by relevance

12345678910>>...178

/linux/fs/
H A Dfile_table.c11 #include <linux/file.h>
42 /* SLAB cache for file structures */
50 /* Container for backing file with optional user path */
52 struct file file; member
62 #define backing_file(f) container_of(f, struct backing_file, file)
64 const struct path *backing_file_user_path(const struct file *f) in backing_file_user_path()
70 void backing_file_set_user_path(struct file *f, const struct path *path) in backing_file_set_user_path()
77 void *backing_file_security(const struct file *f) in backing_file_security()
82 void backing_file_set_security(struct file *
361 file_init_path(struct file * file,const struct path * path,const struct file_operations * fop) file_init_path() argument
394 struct file *file; alloc_file() local
421 struct file *file; alloc_file_pseudo() local
449 struct file *file; alloc_file_pseudo_noaccount() local
486 __fput(struct file * file) __fput() argument
563 __fput_deferred(struct file * file) __fput_deferred() argument
587 fput(struct file * file) fput() argument
602 __fput_sync(struct file * file) __fput_sync() argument
615 fput_close_sync(struct file * file) fput_close_sync() argument
627 fput_close(struct file * file) fput_close() argument
[all...]
H A Dfile.c3 * linux/fs/file.c
17 #include <linux/file.h>
36 if (WARN_ONCE(cnt >= FILE_REF_RELEASED, "imbalanced put on file reference count")) { in __file_ref_put_badval()
121 * space if any. This does not copy the file pointers. Called with the files
138 * Copy all file descriptors from the old table to the new, expanded table and
147 cpy = ofdt->max_fds * sizeof(struct file *); in copy_fdtable()
148 set = (nfdt->max_fds - ofdt->max_fds) * sizeof(struct file *); in copy_fdtable()
206 * a process tries to use a file descriptor near that limit. For example, in alloc_fdtable()
208 * systemd typically sets it to - then trying to use a file descriptor in alloc_fdtable()
209 * close to that value will require allocating a file descripto in alloc_fdtable()
568 struct file *file = fdt->fd[j * BITS_PER_LONG + bit]; close_files() local
736 fd_install_slowpath(unsigned int fd,struct file * file) fd_install_slowpath() argument
756 fd_install(unsigned int fd,struct file * file) fd_install() argument
794 struct file *file; file_close_fd_locked() local
812 struct file *file; close_fd() local
901 struct file *file; __range_close() local
1028 struct file *file; file_close_fd() local
1057 struct file *file; close_cloexec_files() local
1077 struct file __rcu *file; __get_file_rcu() local
1132 struct file __rcu *file; get_file_rcu() local
1155 struct file __rcu *file; get_file_active() local
1170 struct file *file; __fget_files_rcu() local
1245 struct file *file; __fget_files() local
1273 struct file *file = NULL; fget_task() local
1287 struct file *file = NULL; fget_task_next() local
1332 struct file *file; __fget_light() local
1376 file_needs_f_pos_lock(struct file * file) file_needs_f_pos_lock() argument
1387 file_seek_cur_needs_f_lock(struct file * file) file_seek_cur_needs_f_lock() argument
1404 struct file *file = fd_file(f); fdget_pos() local
1442 do_dup2(struct files_struct * files,struct file * file,unsigned fd,unsigned flags) do_dup2() argument
1494 replace_fd(unsigned fd,struct file * file,unsigned flags) replace_fd() argument
1534 receive_fd(struct file * file,int __user * ufd,unsigned int o_flags) receive_fd() argument
1558 receive_fd_replace(int new_fd,struct file * file,unsigned int o_flags) receive_fd_replace() argument
1575 struct file *file; ksys_dup3() local
1633 struct file *file = fget_raw(fildes); SYSCALL_DEFINE1() local
1645 f_dupfd(unsigned int from,struct file * file,unsigned flags) f_dupfd() argument
1660 iterate_fd(struct files_struct * files,unsigned n,int (* f)(const void *,struct file *,unsigned),const void * p) iterate_fd() argument
1669 struct file *file; iterate_fd() local
[all...]
H A Dread_write.c12 #include <linux/file.h>
39 static inline bool unsigned_offsets(struct file *file) in unsigned_offsets() argument
41 return file->f_op->fop_flags & FOP_UNSIGNED_OFFSET; in unsigned_offsets()
45 * vfs_setpos_cookie - update the file offset for lseek and reset cookie
46 * @file: file structure in question
47 * @offset: file offset to seek to
48 * @maxsize: maximum file size
51 * Update the file offse
57 vfs_setpos_cookie(struct file * file,loff_t offset,loff_t maxsize,u64 * cookie) vfs_setpos_cookie() argument
85 vfs_setpos(struct file * file,loff_t offset,loff_t maxsize) vfs_setpos() argument
104 must_set_pos(struct file * file,loff_t * offset,int whence,loff_t eof) must_set_pos() argument
161 generic_file_llseek_size(struct file * file,loff_t offset,int whence,loff_t maxsize,loff_t eof) generic_file_llseek_size() argument
203 generic_llseek_cookie(struct file * file,loff_t offset,int whence,u64 * cookie) generic_llseek_cookie() argument
246 generic_file_llseek(struct file * file,loff_t offset,int whence) generic_file_llseek() argument
264 fixed_size_llseek(struct file * file,loff_t offset,int whence,loff_t size) fixed_size_llseek() argument
283 no_seek_end_llseek(struct file * file,loff_t offset,int whence) no_seek_end_llseek() argument
303 no_seek_end_llseek_size(struct file * file,loff_t offset,int whence,loff_t size) no_seek_end_llseek_size() argument
326 noop_llseek(struct file * file,loff_t offset,int whence) noop_llseek() argument
332 default_llseek(struct file * file,loff_t offset,int whence) default_llseek() argument
387 vfs_llseek(struct file * file,loff_t offset,int whence) vfs_llseek() argument
453 rw_verify_area(int read_write,struct file * file,const loff_t * ppos,size_t count) rw_verify_area() argument
500 warn_unsupported(struct file * file,const char * op) warn_unsupported() argument
508 __kernel_read(struct file * file,void * buf,size_t count,loff_t * pos) __kernel_read() argument
543 kernel_read(struct file * file,void * buf,size_t count,loff_t * pos) kernel_read() argument
554 vfs_read(struct file * file,char __user * buf,size_t count,loff_t * pos) vfs_read() argument
603 __kernel_write_iter(struct file * file,struct iov_iter * from,loff_t * pos) __kernel_write_iter() argument
633 __kernel_write(struct file * file,const void * buf,size_t count,loff_t * pos) __kernel_write() argument
651 kernel_write(struct file * file,const void * buf,size_t count,loff_t * pos) kernel_write() argument
667 vfs_write(struct file * file,const char __user * buf,size_t count,loff_t * pos) vfs_write() argument
700 file_ppos(struct file * file) file_ppos() argument
869 vfs_iocb_iter_read(struct file * file,struct kiocb * iocb,struct iov_iter * iter) vfs_iocb_iter_read() argument
897 vfs_iter_read(struct file * file,struct iov_iter * iter,loff_t * ppos,rwf_t flags) vfs_iter_read() argument
929 vfs_iocb_iter_write(struct file * file,struct kiocb * iocb,struct iov_iter * iter) vfs_iocb_iter_write() argument
960 vfs_iter_write(struct file * file,struct iov_iter * iter,loff_t * ppos,rwf_t flags) vfs_iter_write() argument
991 vfs_readv(struct file * file,const struct iovec __user * vec,unsigned long vlen,loff_t * pos,rwf_t flags) vfs_readv() argument
1029 vfs_writev(struct file * file,const struct iovec __user * vec,unsigned long vlen,loff_t * pos,rwf_t flags) vfs_writev() argument
1710 generic_write_check_limits(struct file * file,loff_t pos,loff_t * count) generic_write_check_limits() argument
1739 struct file *file = iocb->ki_filp; generic_write_checks_count() local
[all...]
H A Dinternal.h67 struct file *file, umode_t mode);
85 int mnt_get_write_access_file(struct file *file);
86 void mnt_put_write_access_file(struct file *file);
106 struct file *alloc_empty_file(int flags, const struct cred *cred);
107 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred);
108 struct file *alloc_empty_backing_file(int flags, const struct cred *cred,
109 const struct file *user_fil
113 file_put_write_access(struct file * file) file_put_write_access() argument
121 put_file_access(struct file * file) put_file_access() argument
[all...]
/linux/fs/overlayfs/
H A Dfile.c28 static struct file *ovl_open_realfile(const struct file *file, in ovl_open_realfile() argument
32 struct inode *inode = file_inode(file); in ovl_open_realfile()
34 struct file *realfile; in ovl_open_realfile()
35 int flags = file->f_flags | OVL_OPEN_FLAGS; in ovl_open_realfile()
51 realfile = backing_file_open(file, in ovl_open_realfile()
57 file, file, ovl_whatisit(inode, realinode), file->f_flags, in ovl_open_realfile()
65 static int ovl_change_flags(struct file *file, unsigned int flags) in ovl_change_flags() argument
67 struct inode *inode = file_inode(file); in ovl_change_flags()
72 if (((flags ^ file->f_flags) & O_APPEND) && IS_APPEND(inode)) in ovl_change_flags()
75 if ((flags & O_DIRECT) && !(file->f_mode & FMODE_CAN_ODIRECT)) in ovl_change_flags()
[all …]
/linux/fs/lockd/
H A Dsvcsubs.c46 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
48 struct inode *inode = nlmsvc_file_inode(file); in nlm_debug_print_file()
59 static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) in nlm_debug_print_file() argument
91 struct nlm_file *file, int mode) in nlm_do_fopen() argument
108 struct file **fp = &file->f_file[m]; in nlm_do_fopen()
117 error = ops->fopen(rqstp, &file->f_handle, fp, m); in nlm_do_fopen()
150 struct nlm_file *file; in nlm_lookup_file() local
161 hlist_for_each_entry(file, &nlm_files[hash], f_list) in nlm_lookup_file()
162 if (!nfs_compare_fh(&file->f_handle, &lock->fh)) { in nlm_lookup_file()
163 mutex_lock(&file->f_mutex); in nlm_lookup_file()
[all …]
/linux/tools/testing/selftests/rcutorture/bin/
H A Dparse-console.sh5 # The "file" is a pathname on the local system, and "title" is
8 # Usage: parse-console.sh file title
15 file="$1"
22 # Check for presence and readability of console output file
23 if test -f "$file" -a -r "$file"
27 echo $title unreadable console output file: $file
30 if grep -Pq '\x00' < $file
34 cat /dev/null > $file
[all...]
/linux/include/linux/
H A Dfile.h17 struct file;
19 extern void fput(struct file *);
27 extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *,
29 extern struct file *alloc_file_pseudo_noaccount(struct inode *, struct vfsmount *,
31 extern struct file *alloc_file_clone(struct file *, int flags,
45 #define fd_file(f) ((struct file *)((f).word & ~(FDPUT_FPUT|FDPUT_POS_UNLOCK)))
52 static inline struct fd BORROWED_FD(struct file *f) in BORROWED_FD()
56 static inline struct fd CLONED_FD(struct file *f) in CLONED_FD()
67 extern struct file *fget(unsigned int fd);
68 extern struct file *fget_raw(unsigned int fd);
[all …]
H A Dfs.h104 * flags in file.f_mode. Note that FMODE_READ and FMODE_WRITE must correspond
108 /* file is open for reading */
110 /* file is open for writing */
112 /* file is seekable */
114 /* file can be accessed using pread */
116 /* file can be accessed using pwrite */
195 * for an open file. These are the possible values of
291 struct file *ia_file;
381 struct file *ki_filp;
403 int (*read_folio)(struct file *, struc
1185 struct file *file; /* backpointer for security modules */ global() member
1255 struct file { global() struct
1258 f_opfile global() argument
1272 __anon6bf1e237090afile global() argument
1290 f_posfile global() argument
1293 f_reffile global() argument
1301 __anon6bf1e2370a0afile global() argument
1339 file_f_owner(const struct file * file) file_f_owner() argument
1359 file_dentry(const struct file * file) file_dentry() argument
1736 file_write_started(const struct file * file) file_write_started() argument
1751 file_write_not_started(const struct file * file) file_write_not_started() argument
2042 can_mmap_file(struct file * file) can_mmap_file() argument
2061 vfs_mmap(struct file * file,struct vm_area_struct * vma) vfs_mmap() argument
2069 vfs_mmap_prepare(struct file * file,struct vm_area_desc * desc) vfs_mmap_prepare() argument
2276 file_accessed(struct file * file) file_accessed() argument
2467 file_mnt_idmap(const struct file * file) file_mnt_idmap() argument
2472 file_owner_or_capable(const struct file * file) file_owner_or_capable() argument
2552 file_clone_open(struct file * file) file_clone_open() argument
2601 finish_open_simple(struct file * file,int error) finish_open_simple() argument
2665 file_write_and_wait(struct file * file) file_write_and_wait() argument
2719 file_permission(struct file * file,int mask) file_permission() argument
2754 file_start_write(struct file * file) file_start_write() argument
2761 file_start_write_trylock(struct file * file) file_start_write_trylock() argument
2774 file_end_write(struct file * file) file_end_write() argument
2842 deny_write_access(struct file * file) deny_write_access() argument
2851 allow_write_access(struct file * file) allow_write_access() argument
2878 file_set_fsnotify_mode(struct file * file,fmode_t mode) file_set_fsnotify_mode() argument
3414 file_is_dax(const struct file * file) file_is_dax() argument
3438 iocb_flags(struct file * file) iocb_flags() argument
3614 dir_emit_dot(struct file * file,struct dir_context * ctx) dir_emit_dot() argument
3619 dir_emit_dotdot(struct file * file,struct dir_context * ctx) dir_emit_dotdot() argument
3624 dir_emit_dots(struct file * file,struct dir_context * ctx) dir_emit_dots() argument
[all...]
/linux/drivers/gpu/drm/i915/gt/
H A Dshmem_utils.c17 struct file *shmem_create_from_data(const char *name, void *data, size_t len) in shmem_create_from_data()
19 struct file *file; in shmem_create_from_data() local
22 file = shmem_file_setup(name, PAGE_ALIGN(len), in shmem_create_from_data()
24 if (IS_ERR(file)) in shmem_create_from_data()
25 return file; in shmem_create_from_data()
27 err = shmem_write(file, 0, data, len); in shmem_create_from_data()
29 fput(file); in shmem_create_from_data()
33 return file; in shmem_create_from_data()
36 struct file *shmem_create_from_object(struct drm_i915_gem_object *obj) in shmem_create_from_object()
39 struct file *file; in shmem_create_from_object() local
[all …]
/linux/drivers/infiniband/core/
H A Duser_mad.c174 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument
176 return file->use_pkey_index ? sizeof(struct ib_user_mad_hdr) : in hdr_size()
181 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument
183 return file->agents_dead ? NULL : file->agent[id]; in __get_agent()
186 static int queue_packet(struct ib_umad_file *file, struct ib_mad_agent *agent, in queue_packet() argument
191 mutex_lock(&file->mutex); in queue_packet()
194 atomic_read(&file->recv_list_size) > MAX_UMAD_RECV_LIST_SIZE) in queue_packet()
200 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
201 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
202 atomic_inc(&file->recv_list_size); in queue_packet()
[all …]
/linux/tools/objtool/
H A Dcheck.c41 struct instruction *find_insn(struct objtool_file *file, in find_insn() argument
46 hash_for_each_possible(file->insn_hash, insn, hash, sec_offset_hash(sec, offset)) { in find_insn()
54 struct instruction *next_insn_same_sec(struct objtool_file *file, in next_insn_same_sec() argument
58 return find_insn(file, insn->sec, insn->offset + insn->len); in next_insn_same_sec()
67 struct instruction *next_insn_same_func(struct objtool_file *file, in next_insn_same_func() argument
70 struct instruction *next = next_insn_same_sec(file, insn); in next_insn_same_func()
84 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func()
87 static struct instruction *prev_insn_same_sec(struct objtool_file *file, in prev_insn_same_sec() argument
92 return find_insn(file, insn->sec, insn->offset - insn->prev_len); in prev_insn_same_sec()
99 static struct instruction *prev_insn_same_sym(struct objtool_file *file, in prev_insn_same_sym() argument
110 for_each_insn(file,insn) global() argument
117 sym_for_each_insn(file,sym,insn) global() argument
122 sym_for_each_insn_continue_reverse(file,sym,insn) global() argument
127 sec_for_each_insn_from(file,insn) global() argument
130 sec_for_each_insn_continue(file,insn) global() argument
231 __dead_end_function(struct objtool_file * file,struct symbol * func,int recursion) __dead_end_function() argument
306 dead_end_function(struct objtool_file * file,struct symbol * func) dead_end_function() argument
324 init_insn_state(struct objtool_file * file,struct insn_state * state,struct section * sec) init_insn_state() argument
410 decode_instructions(struct objtool_file * file) decode_instructions() argument
553 add_pv_ops(struct objtool_file * file,int pv_ops_idx) add_pv_ops() argument
607 init_pv_ops(struct objtool_file * file) init_pv_ops() argument
650 is_livepatch_module(struct objtool_file * file) is_livepatch_module() argument
664 create_static_call_sections(struct objtool_file * file) create_static_call_sections() argument
756 create_retpoline_sites_sections(struct objtool_file * file) create_retpoline_sites_sections() argument
794 create_return_sites_sections(struct objtool_file * file) create_return_sites_sections() argument
832 create_ibt_endbr_seal_sections(struct objtool_file * file) create_ibt_endbr_seal_sections() argument
892 grow_cfi_symbols(struct objtool_file * file) grow_cfi_symbols() argument
913 create_cfi_sections(struct objtool_file * file) create_cfi_sections() argument
960 create_mcount_loc_sections(struct objtool_file * file) create_mcount_loc_sections() argument
1011 create_direct_call_sections(struct objtool_file * file) create_direct_call_sections() argument
1052 add_ignores(struct objtool_file * file) add_ignores() argument
1278 add_uaccess_safe(struct objtool_file * file) add_uaccess_safe() argument
1322 insn_reloc(struct objtool_file * file,struct instruction * insn) insn_reloc() argument
1350 annotate_call_site(struct objtool_file * file,struct instruction * insn,bool sibling) annotate_call_site() argument
1430 add_call_dest(struct objtool_file * file,struct instruction * insn,struct symbol * dest,bool sibling) add_call_dest() argument
1449 add_retpoline_call(struct objtool_file * file,struct instruction * insn) add_retpoline_call() argument
1483 add_return_call(struct objtool_file * file,struct instruction * insn,bool add) add_return_call() argument
1496 is_first_func_insn(struct objtool_file * file,struct instruction * insn) is_first_func_insn() argument
1522 add_jump_destinations(struct objtool_file * file) add_jump_destinations() argument
1663 add_call_destinations(struct objtool_file * file) add_call_destinations() argument
1725 handle_group_alt(struct objtool_file * file,struct special_alt * special_alt,struct instruction * orig_insn,struct instruction ** new_insn) handle_group_alt() argument
1875 handle_jump_alt(struct objtool_file * file,struct special_alt * special_alt,struct instruction * orig_insn,struct instruction ** new_insn) handle_jump_alt() argument
1926 add_special_section_alts(struct objtool_file * file) add_special_section_alts() argument
2019 add_jump_table(struct objtool_file * file,struct instruction * insn) add_jump_table() argument
2093 find_jump_table(struct objtool_file * file,struct symbol * func,struct instruction * insn) find_jump_table() argument
2142 mark_func_jump_tables(struct objtool_file * file,struct symbol * func) mark_func_jump_tables() argument
2171 add_func_jump_tables(struct objtool_file * file,struct symbol * func) add_func_jump_tables() argument
2192 add_jump_table_alts(struct objtool_file * file) add_jump_table_alts() argument
2220 read_unwind_hints(struct objtool_file * file) read_unwind_hints() argument
2315 read_annotate(struct objtool_file * file,int (* func)(struct objtool_file * file,int type,struct instruction * insn)) read_annotate() argument
2316 read_annotate(struct objtool_file * file,int (* func)(struct objtool_file * file,int type,struct instruction * insn)) read_annotate() argument
2362 __annotate_early(struct objtool_file * file,int type,struct instruction * insn) __annotate_early() argument
2385 __annotate_ifc(struct objtool_file * file,int type,struct instruction * insn) __annotate_ifc() argument
2415 __annotate_late(struct objtool_file * file,int type,struct instruction * insn) __annotate_late() argument
2492 classify_symbols(struct objtool_file * file) classify_symbols() argument
2531 mark_rodata(struct objtool_file * file) mark_rodata() argument
2553 mark_holes(struct objtool_file * file) mark_holes() argument
2607 decode_file(struct objtool_file * file) decode_file() argument
3290 propagate_alt_cfi(struct objtool_file * file,struct instruction * insn) propagate_alt_cfi() argument
3445 pv_call_dest(struct objtool_file * file,struct instruction * insn) pv_call_dest() argument
3472 noinstr_call_dest(struct objtool_file * file,struct instruction * insn,struct symbol * func) noinstr_call_dest() argument
3510 validate_call(struct objtool_file * file,struct instruction * insn,struct insn_state * state) validate_call() argument
3533 validate_sibling_call(struct objtool_file * file,struct instruction * insn,struct insn_state * state) validate_sibling_call() argument
3580 next_insn_to_validate(struct objtool_file * file,struct instruction * insn) next_insn_to_validate() argument
3651 validate_insn(struct objtool_file * file,struct symbol * func,struct instruction * insn,struct insn_state * statep,struct instruction * prev_insn,struct instruction * next_insn,bool * dead_end) validate_insn() argument
3913 do_validate_branch(struct objtool_file * file,struct symbol * func,struct instruction * insn,struct insn_state * state) do_validate_branch() argument
3972 validate_branch(struct objtool_file * file,struct symbol * func,struct instruction * insn,struct insn_state state) validate_branch() argument
3984 validate_unwind_hint(struct objtool_file * file,struct instruction * insn,struct insn_state * state) validate_unwind_hint() argument
4001 validate_unwind_hints(struct objtool_file * file,struct section * sec) validate_unwind_hints() argument
4029 validate_unret(struct objtool_file * file,struct instruction * insn) validate_unret() argument
4138 validate_unrets(struct objtool_file * file) validate_unrets() argument
4153 validate_retpoline(struct objtool_file * file) validate_retpoline() argument
4230 ignore_unreachable_insn(struct objtool_file * file,struct instruction * insn) ignore_unreachable_insn() argument
4304 create_prefix_symbol(struct objtool_file * file,struct symbol * func) create_prefix_symbol() argument
4339 create_prefix_symbols(struct objtool_file * file) create_prefix_symbols() argument
4362 validate_symbol(struct objtool_file * file,struct section * sec,struct symbol * sym,struct insn_state * state) validate_symbol() argument
4401 validate_section(struct objtool_file * file,struct section * sec) validate_section() argument
4420 validate_noinstr_sections(struct objtool_file * file) validate_noinstr_sections() argument
4446 validate_functions(struct objtool_file * file) validate_functions() argument
4467 noendbr_range(struct objtool_file * file,struct instruction * insn) noendbr_range() argument
4485 __validate_ibt_insn(struct objtool_file * file,struct instruction * insn,struct instruction * dest) __validate_ibt_insn() argument
4530 validate_ibt_insn(struct objtool_file * file,struct instruction * insn) validate_ibt_insn() argument
4591 validate_ibt_data_reloc(struct objtool_file * file,struct reloc * reloc) validate_ibt_data_reloc() argument
4620 validate_ibt(struct objtool_file * file) validate_ibt() argument
4674 validate_sls(struct objtool_file * file) validate_sls() argument
4707 validate_reachable_instructions(struct objtool_file * file) validate_reachable_instructions() argument
4746 check_abs_references(struct objtool_file * file) check_abs_references() argument
4789 free_insns(struct objtool_file * file) free_insns() argument
4818 check(struct objtool_file * file) check() argument
[all...]
/linux/fs/ceph/
H A Dioctl.c18 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) in ceph_ioctl_get_layout() argument
20 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_get_layout()
24 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_get_layout()
65 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) in ceph_ioctl_set_layout() argument
67 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout()
71 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_set_layout()
75 if (!inode_owner_or_capable(file_mnt_idmap(file), inode)) in ceph_ioctl_set_layout()
82 err = ceph_do_getattr(file_inode(file), CEPH_STAT_CAP_LAYOUT, false); in ceph_ioctl_set_layout()
140 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg) in ceph_ioctl_set_layout_policy() argument
142 struct inode *inode = file_inode(file); in ceph_ioctl_set_layout_policy()
[all …]
/linux/fs/proc/
H A Dinode.c235 struct file *file; in close_pdeo() local
241 file = pdeo->file; in close_pdeo()
242 pde->proc_ops->proc_release(file_inode(file), file); in close_pdeo()
275 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument
277 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_llseek()
281 return pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek()
283 rv = pde->proc_ops->proc_lseek(file, offset, whence); in proc_reg_llseek()
304 static ssize_t pde_read(struct proc_dir_entry *pde, struct file *file, char __user *buf, size_t cou… in pde_read() argument
308 return read(file, buf, count, ppos); in pde_read()
312 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read() argument
[all …]
/linux/kernel/trace/
H A Dtrace_events_trigger.c159 * @file: The trace_event_file associated with the event
184 event_triggers_call(struct trace_event_file *file, in event_triggers_call() argument
192 if (list_empty(&file->triggers)) in event_triggers_call()
195 list_for_each_entry_rcu(data, &file->triggers, list) { in event_triggers_call()
215 bool __trace_trigger_soft_disabled(struct trace_event_file *file) in __trace_trigger_soft_disabled() argument
217 unsigned long eflags = file->flags; in __trace_trigger_soft_disabled()
220 event_triggers_call(file, NULL, NULL, NULL); in __trace_trigger_soft_disabled()
224 return trace_event_ignore_this_pid(file); in __trace_trigger_soft_disabled()
231 * @file: The trace_event_file associated with the event
242 event_triggers_post_call(struct trace_event_file *file, in event_triggers_post_call() argument
269 check_user_trigger(struct trace_event_file * file) check_user_trigger() argument
332 event_trigger_regex_open(struct inode * inode,struct file * file) event_trigger_regex_open() argument
369 trigger_process_regex(struct trace_event_file * file,char * buff) trigger_process_regex() argument
394 event_trigger_regex_write(struct file * file,const char __user * ubuf,size_t cnt,loff_t * ppos) event_trigger_regex_write() argument
426 event_trigger_regex_release(struct inode * inode,struct file * file) event_trigger_regex_release() argument
449 event_trigger_release(struct inode * inode,struct file * file) event_trigger_release() argument
603 trace_event_trigger_enable_disable(struct trace_event_file * file,int trigger_enable) trace_event_trigger_enable_disable() argument
639 struct trace_event_file *file; clear_event_triggers() local
662 update_cond_flag(struct trace_event_file * file) update_cond_flag() argument
698 register_trigger(char * glob,struct event_trigger_data * data,struct trace_event_file * file) register_trigger() argument
732 try_unregister_trigger(char * glob,struct event_trigger_data * test,struct trace_event_file * file) try_unregister_trigger() argument
771 unregister_trigger(char * glob,struct event_trigger_data * test,struct trace_event_file * file) unregister_trigger() argument
1042 event_trigger_set_filter(struct event_command * cmd_ops,struct trace_event_file * file,char * param,struct event_trigger_data * trigger_data) event_trigger_set_filter() argument
1079 event_trigger_register(struct event_command * cmd_ops,struct trace_event_file * file,char * glob,struct event_trigger_data * trigger_data) event_trigger_register() argument
1097 event_trigger_unregister(struct event_command * cmd_ops,struct trace_event_file * file,char * glob,struct event_trigger_data * trigger_data) event_trigger_unregister() argument
1126 event_trigger_parse(struct event_command * cmd_ops,struct trace_event_file * file,char * glob,char * cmd,char * param_and_filter) event_trigger_parse() argument
1194 set_trigger_filter(char * filter_str,struct event_trigger_data * trigger_data,struct trace_event_file * file) set_trigger_filter() argument
1411 struct trace_event_file *file = data->private_data; traceon_trigger() local
1427 struct trace_event_file *file = data->private_data; traceon_count_func() local
1449 struct trace_event_file *file = data->private_data; traceoff_trigger() local
1465 struct trace_event_file *file = data->private_data; traceoff_count_func() local
1531 struct trace_event_file *file = data->private_data; snapshot_trigger() local
1542 register_snapshot_trigger(char * glob,struct event_trigger_data * data,struct trace_event_file * file) register_snapshot_trigger() argument
1557 unregister_snapshot_trigger(char * glob,struct event_trigger_data * data,struct trace_event_file * file) unregister_snapshot_trigger() argument
1620 struct trace_event_file *file = data->private_data; stacktrace_trigger() local
1753 event_enable_trigger_parse(struct event_command * cmd_ops,struct trace_event_file * file,char * glob,char * cmd,char * param_and_filter) event_enable_trigger_parse() argument
1863 event_enable_register_trigger(char * glob,struct event_trigger_data * data,struct trace_event_file * file) event_enable_register_trigger() argument
1901 event_enable_unregister_trigger(char * glob,struct event_trigger_data * test,struct trace_event_file * file) event_enable_unregister_trigger() argument
[all...]
/linux/drivers/gpu/drm/
H A Ddrm_file.c136 struct drm_file *file; in drm_file_alloc() local
139 file = kzalloc_obj(*file); in drm_file_alloc()
140 if (!file) in drm_file_alloc()
144 file->client_id = atomic64_inc_return(&ident); in drm_file_alloc()
145 rcu_assign_pointer(file->pid, get_pid(task_tgid(current))); in drm_file_alloc()
146 file->minor = minor; in drm_file_alloc()
149 file->authenticated = capable(CAP_SYS_ADMIN); in drm_file_alloc()
151 INIT_LIST_HEAD(&file->lhead); in drm_file_alloc()
152 INIT_LIST_HEAD(&file->fbs); in drm_file_alloc()
153 mutex_init(&file->fbs_lock); in drm_file_alloc()
[all …]
/linux/fs/ocfs2/
H A Dlocks.c23 static int ocfs2_do_flock(struct file *file, struct inode *inode, in ocfs2_do_flock() argument
27 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock()
58 locks_lock_file_wait(file, &request); in ocfs2_do_flock()
60 ocfs2_file_unlock(file); in ocfs2_do_flock()
63 ret = ocfs2_file_lock(file, level, trylock); in ocfs2_do_flock()
72 ret = locks_lock_file_wait(file, fl); in ocfs2_do_flock()
74 ocfs2_file_unlock(file); in ocfs2_do_flock()
82 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock() argument
85 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock()
88 ocfs2_file_unlock(file); in ocfs2_do_funlock()
[all …]
/linux/tools/perf/util/
H A Ddata.c23 static void perf_data_file__close(struct perf_data_file *file) in close_dir()
25 if (file->use_stdio) { in close_dir()
26 if (file->fptr) { in close_dir()
27 fclose(file->fptr); in close_dir()
28 file->fptr = NULL; in close_dir()
31 close(file->fd);
32 file->fd = -1; in perf_data__close_dir()
34 zfree(&file->path); in perf_data__close_dir()
66 struct perf_data_file *file = &files[i]; in perf_data__create_dir()
68 ret = asprintf(&file in perf_data__create_dir()
51 struct perf_data_file *file = &files[i]; perf_data__create_dir() local
115 struct perf_data_file *file; perf_data__open_dir() local
385 perf_data_file__write(struct perf_data_file * file,void * buf,size_t size) perf_data_file__write() argument
449 struct perf_data_file *file = &data->dir.files[i]; perf_data__size() local
531 FILE *file; is_perf_data() local
[all...]
/linux/scripts/
H A Dleaking_addresses.pl268 my $file = '/boot/config-' . `uname -r`;
269 chomp $file;
270 @config_files = ($file, '/boot/config');
273 foreach my $file (@config_files) {
274 dprint("parsing config file: $file\n");
275 $value = option_from_file($option, $file);
287 my ($option, $file) = @_;
291 open(my $fh, "<", $file) or return "";
460 my ($file) = @_;
465 parse_file($file);
[all …]
/linux/drivers/media/pci/cx18/
H A Dcx18-ioctl.c52 static int cx18_g_fmt_vid_cap(struct file *file, void *fh, in cx18_g_fmt_vid_cap() argument
55 struct cx18_open_id *id = file2id(file); in cx18_g_fmt_vid_cap()
76 static int cx18_try_fmt_vid_cap(struct file *file, void *fh, in cx18_try_fmt_vid_cap() argument
79 struct cx18_open_id *id = file2id(file); in cx18_try_fmt_vid_cap()
121 static int cx18_s_fmt_vid_cap(struct file *file, void *fh, in cx18_s_fmt_vid_cap() argument
124 struct cx18_open_id *id = file2id(file); in cx18_s_fmt_vid_cap()
133 ret = cx18_try_fmt_vid_cap(file, f in cx18_s_fmt_vid_cap()
261 cx18_g_fmt_vbi_cap(struct file * file,void * fh,struct v4l2_format * fmt) cx18_g_fmt_vbi_cap() argument
280 cx18_g_fmt_sliced_vbi_cap(struct file * file,void * fh,struct v4l2_format * fmt) cx18_g_fmt_sliced_vbi_cap() argument
305 cx18_try_fmt_vbi_cap(struct file * file,void * fh,struct v4l2_format * fmt) cx18_try_fmt_vbi_cap() argument
311 cx18_try_fmt_sliced_vbi_cap(struct file * file,void * fh,struct v4l2_format * fmt) cx18_try_fmt_sliced_vbi_cap() argument
330 cx18_s_fmt_vbi_cap(struct file * file,void * fh,struct v4l2_format * fmt) cx18_s_fmt_vbi_cap() argument
360 cx18_s_fmt_sliced_vbi_cap(struct file * file,void * fh,struct v4l2_format * fmt) cx18_s_fmt_sliced_vbi_cap() argument
392 cx18_g_register(struct file * file,void * fh,struct v4l2_dbg_register * reg) cx18_g_register() argument
406 cx18_s_register(struct file * file,void * fh,const struct v4l2_dbg_register * reg) cx18_s_register() argument
420 cx18_querycap(struct file * file,void * fh,struct v4l2_capability * vcap) cx18_querycap() argument
432 cx18_enumaudio(struct file * file,void * fh,struct v4l2_audio * vin) cx18_enumaudio() argument
439 cx18_g_audio(struct file * file,void * fh,struct v4l2_audio * vin) cx18_g_audio() argument
447 cx18_s_audio(struct file * file,void * fh,const struct v4l2_audio * vout) cx18_s_audio() argument
458 cx18_enum_input(struct file * file,void * fh,struct v4l2_input * vin) cx18_enum_input() argument
466 cx18_g_pixelaspect(struct file * file,void * fh,int type,struct v4l2_fract * f) cx18_g_pixelaspect() argument
479 cx18_g_selection(struct file * file,void * fh,struct v4l2_selection * sel) cx18_g_selection() argument
499 cx18_enum_fmt_vid_cap(struct file * file,void * fh,struct v4l2_fmtdesc * fmt) cx18_enum_fmt_vid_cap() argument
516 cx18_g_input(struct file * file,void * fh,unsigned int * i) cx18_g_input() argument
559 cx18_s_input(struct file * file,void * fh,unsigned int inp) cx18_s_input() argument
564 cx18_g_frequency(struct file * file,void * fh,struct v4l2_frequency * vf) cx18_g_frequency() argument
588 cx18_s_frequency(struct file * file,void * fh,const struct v4l2_frequency * vf) cx18_s_frequency() argument
594 cx18_g_std(struct file * file,void * fh,v4l2_std_id * std) cx18_g_std() argument
648 cx18_s_std(struct file * file,void * fh,v4l2_std_id std) cx18_s_std() argument
653 cx18_s_tuner(struct file * file,void * fh,const struct v4l2_tuner * vt) cx18_s_tuner() argument
665 cx18_g_tuner(struct file * file,void * fh,struct v4l2_tuner * vt) cx18_g_tuner() argument
681 cx18_g_sliced_vbi_cap(struct file * file,void * fh,struct v4l2_sliced_vbi_cap * cap) cx18_g_sliced_vbi_cap() argument
802 cx18_g_enc_index(struct file * file,void * fh,struct v4l2_enc_idx * idx) cx18_g_enc_index() argument
849 cx18_encoder_cmd(struct file * file,void * fh,struct v4l2_encoder_cmd * enc) cx18_encoder_cmd() argument
908 cx18_try_encoder_cmd(struct file * file,void * fh,struct v4l2_encoder_cmd * enc) cx18_try_encoder_cmd() argument
941 cx18_log_status(struct file * file,void * fh) cx18_log_status() argument
984 cx18_default(struct file * file,void * fh,bool valid_prio,unsigned int cmd,void * arg) cx18_default() argument
[all...]
/linux/drivers/net/wireless/marvell/libertas/
H A Ddebugfs.c25 static ssize_t write_file_dummy(struct file *file, const char __user *buf, in write_file_dummy() argument
33 static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, in lbs_dev_info() argument
36 struct lbs_private *priv = file->private_data; in lbs_dev_info()
54 static ssize_t lbs_sleepparams_write(struct file *file, in lbs_sleepparams_write() argument
58 struct lbs_private *priv = file->private_data; in lbs_sleepparams_write()
91 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, in lbs_sleepparams_read() argument
94 struct lbs_private *priv = file->private_data; in lbs_sleepparams_read()
118 static ssize_t lbs_host_sleep_write(struct file *file, in lbs_host_sleep_write() argument
122 struct lbs_private *priv = file->private_data; in lbs_host_sleep_write()
160 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, in lbs_host_sleep_read() argument
[all …]
/linux/arch/powerpc/platforms/cell/spufs/
H A Dfile.c43 static int spufs_attr_open(struct inode *inode, struct file *file, in spufs_attr_open() argument
58 file->private_data = attr; in spufs_attr_open()
60 return nonseekable_open(inode, file); in spufs_attr_open()
63 static int spufs_attr_release(struct inode *inode, struct file *file) in spufs_attr_release() argument
65 kfree(file->private_data); in spufs_attr_release()
69 static ssize_t spufs_attr_read(struct file *file, char __user *buf, in spufs_attr_read() argument
76 attr = file->private_data; in spufs_attr_read()
102 static ssize_t spufs_attr_write(struct file *file, const char __user *buf, in spufs_attr_write() argument
110 attr = file->private_data; in spufs_attr_write()
133 static int __fops ## _open(struct inode *inode, struct file *file) \
[all …]
/linux/tools/testing/ktest/examples/bootconfigs/
H A Dverify-functiongraph.sh6 file="$1"
8 content=`cat $file`
10 echo "FAILED: $file has '$content', expected '$val'"
16 file="$1"
18 content=`cat $file | sed -ne "/^$val/p"`
20 echo "FAILED: $file does not contain '$val'"
21 cat $file
27 file=$1
30 if ! grep -q "$val" $file ; then
31 echo "FAILED: $file does not contain $val"
[all …]
H A Dverify-tracing.sh6 file="$1"
8 content=`cat $file`
10 echo "FAILED: $file has '$content', expected '$val'"
16 file="$1"
18 content=`cat $file | sed -ne "/^$val/p"`
20 echo "FAILED: $file does not contain '$val'"
21 cat $file
27 file=$1
30 if ! grep -q "$val" $file ; then
31 echo "FAILED: $file does not contain $val"
[all …]
/linux/virt/kvm/
H A Dvfio.c10 #include <linux/file.h>
26 struct file *file; member
38 static void kvm_vfio_file_set_kvm(struct file *vfio_file, struct file *kvm) in kvm_vfio_file_set_kvm() argument
40 void (*fn)(struct file *vfio_file, struct file *kvm); in kvm_vfio_file_set_kvm()
51 static bool kvm_vfio_file_enforced_coherent(struct file *file) in kvm_vfio_file_enforced_coherent() argument
53 bool (*fn)(struct file *fil in kvm_vfio_file_enforced_coherent()
67 kvm_vfio_file_is_valid(struct file * file) kvm_vfio_file_is_valid() argument
84 kvm_vfio_file_iommu_group(struct file * file) kvm_vfio_file_iommu_group() argument
[all...]

12345678910>>...178