/linux/drivers/watchdog/ |
H A D | wdrtas.c | 222 * @file: file structure 225 * @ppos: position in file 234 static ssize_t wdrtas_write(struct file *file, const char __user *buf, in wdrtas_write() argument 263 * @file: file structure 272 static long wdrtas_ioctl(struct file *file, unsigned int cmd, in wdrtas_ioctl() argument 348 * @file 355 wdrtas_open(struct inode * inode,struct file * file) wdrtas_open() argument 378 wdrtas_close(struct inode * inode,struct file * file) wdrtas_close() argument 406 wdrtas_temp_read(struct file * file,char __user * buf,size_t count,loff_t * ppos) wdrtas_temp_read() argument 430 wdrtas_temp_open(struct inode * inode,struct file * file) wdrtas_temp_open() argument 444 wdrtas_temp_close(struct inode * inode,struct file * file) wdrtas_temp_close() argument [all...] |
/linux/drivers/infiniband/core/ |
H A D | ucma.c | 6 * General Public License (GPL) Version 2, available from the file 34 #include <linux/file.h> 80 struct file *filp; 93 struct ucma_file *file; member 129 struct ucma_file *file) in _ucma_find_context() argument 136 else if (ctx->file != file) in _ucma_find_context() 141 static struct ucma_context *ucma_get_ctx(struct ucma_file *file, int id) in ucma_get_ctx() argument 146 ctx = _ucma_find_context(id, file); in ucma_get_ctx() 164 static struct ucma_context *ucma_get_ctx_dev(struct ucma_file *file, in argument 194 ucma_alloc_ctx(struct ucma_file * file) ucma_alloc_ctx() argument 370 ucma_get_event(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_get_event() argument 440 ucma_create_id(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_create_id() argument 592 ucma_destroy_id(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_destroy_id() argument 626 ucma_bind_ip(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_bind_ip() argument 651 ucma_bind(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_bind() argument 676 ucma_resolve_ip(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_resolve_ip() argument 703 ucma_resolve_addr(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_resolve_addr() argument 731 ucma_resolve_route(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_resolve_route() argument 817 ucma_query_route(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_query_route() argument 997 ucma_query(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_query() argument 1051 ucma_connect(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_connect() argument 1087 ucma_listen(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_listen() argument 1112 ucma_accept(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_accept() argument 1159 ucma_reject(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_reject() argument 1192 ucma_disconnect(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_disconnect() argument 1213 ucma_init_qp_attr(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_init_qp_attr() argument 1380 ucma_set_option(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_set_option() argument 1414 ucma_notify(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_notify() argument 1437 ucma_process_join(struct ucma_file * file,struct rdma_ucm_join_mcast * cmd,int out_len) ucma_process_join() argument 1522 ucma_join_ip_multicast(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_join_ip_multicast() argument 1545 ucma_join_multicast(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_join_multicast() argument 1560 ucma_leave_multicast(struct ucma_file * file,const char __user * inbuf,int in_len,int out_len) ucma_leave_multicast() argument 1712 struct ucma_file *file = filp->private_data; ucma_write() local 1747 struct ucma_file *file = filp->private_data; ucma_poll() local 1768 struct ucma_file *file; ucma_open() local 1787 struct ucma_file *file = filp->private_data; ucma_close() local [all...] |
H A D | uverbs_main.c | 10 * General Public License (GPL) Version 2, available from the file 44 #include <linux/file.h> 199 struct ib_uverbs_file *file = in ib_uverbs_release_file() local 204 release_ufile_idr_uobject(file); in ib_uverbs_release_file() 206 srcu_key = srcu_read_lock(&file->device->disassociate_srcu); in ib_uverbs_release_file() 207 ib_dev = srcu_dereference(file->device->ib_dev, in ib_uverbs_release_file() 208 &file->device->disassociate_srcu); in ib_uverbs_release_file() 211 srcu_read_unlock(&file->device->disassociate_srcu, srcu_key); in ib_uverbs_release_file() 213 if (refcount_dec_and_test(&file->device->refcount)) in ib_uverbs_release_file() 214 ib_uverbs_comp_dev(file in ib_uverbs_release_file() 286 struct ib_uverbs_async_event_file *file = filp->private_data; ib_uverbs_async_event_read() local 324 struct ib_uverbs_async_event_file *file = filp->private_data; ib_uverbs_async_event_poll() local 340 struct ib_uverbs_async_event_file *file = filp->private_data; ib_uverbs_async_event_fasync() local 574 struct ib_uverbs_file *file = filp->private_data; ib_uverbs_write() local 693 struct ib_uverbs_file *file = filp->private_data; ib_uverbs_mmap() local 932 struct ib_uverbs_file *file; ib_uverbs_open() local 1014 struct ib_uverbs_file *file = filp->private_data; ib_uverbs_close() local 1225 struct ib_uverbs_file *file; ib_uverbs_free_hw_resources() local [all...] |
/linux/drivers/media/common/videobuf2/ |
H A D | videobuf2-v4l2.c | 727 dprintk(q, 1, "file io in progress\n"); in vb2_prepare_buf() 818 dprintk(q, 1, "file io in progress\n"); in vb2_qbuf() 843 dprintk(q, 1, "file io in progress\n"); in vb2_dqbuf() 872 dprintk(q, 1, "file io in progress\n"); in vb2_streamon() 882 dprintk(q, 1, "file io in progress\n"); in vb2_streamoff() 974 __poll_t vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait) in vb2_poll() argument 976 struct video_device *vfd = video_devdata(file); in vb2_poll() 979 res = vb2_core_poll(q, file, wait); in vb2_poll() 982 struct v4l2_fh *fh = file in vb2_poll() 1003 vb2_ioctl_remove_bufs(struct file * file,void * priv,struct v4l2_remove_buffers * d) vb2_ioctl_remove_bufs() argument 1021 vb2_ioctl_reqbufs(struct file * file,void * priv,struct v4l2_requestbuffers * p) vb2_ioctl_reqbufs() argument 1044 vb2_ioctl_create_bufs(struct file * file,void * priv,struct v4l2_create_buffers * p) vb2_ioctl_create_bufs() argument 1071 vb2_ioctl_prepare_buf(struct file * file,void * priv,struct v4l2_buffer * p) vb2_ioctl_prepare_buf() argument 1082 vb2_ioctl_querybuf(struct file * file,void * priv,struct v4l2_buffer * p) vb2_ioctl_querybuf() argument 1091 vb2_ioctl_qbuf(struct file * file,void * priv,struct v4l2_buffer * p) vb2_ioctl_qbuf() argument 1101 vb2_ioctl_dqbuf(struct file * file,void * priv,struct v4l2_buffer * p) vb2_ioctl_dqbuf() argument 1111 vb2_ioctl_streamon(struct file * file,void * priv,enum v4l2_buf_type i) vb2_ioctl_streamon() argument 1121 vb2_ioctl_streamoff(struct file * file,void * priv,enum v4l2_buf_type i) vb2_ioctl_streamoff() argument 1131 vb2_ioctl_expbuf(struct file * file,void * priv,struct v4l2_exportbuffer * p) vb2_ioctl_expbuf() argument 1143 vb2_fop_mmap(struct file * file,struct vm_area_struct * vma) vb2_fop_mmap() argument 1151 _vb2_fop_release(struct file * file,struct mutex * lock) _vb2_fop_release() argument 1167 vb2_fop_release(struct file * file) vb2_fop_release() argument 1176 vb2_fop_write(struct file * file,const char __user * buf,size_t count,loff_t * ppos) vb2_fop_write() argument 1200 vb2_fop_read(struct file * file,char __user * buf,size_t count,loff_t * ppos) vb2_fop_read() argument 1225 vb2_fop_poll(struct file * file,poll_table * wait) vb2_fop_poll() argument 1256 vb2_fop_get_unmapped_area(struct file * file,unsigned long addr,unsigned long len,unsigned long pgoff,unsigned long flags) vb2_fop_get_unmapped_area() argument [all...] |
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_debugfs.c | 79 * @s: the seq file to put data into 123 * ice_debugfs_module_show - read from 'module' file 124 * @s: the opened file 129 const struct file *filp = s->file; in ice_debugfs_module_show() 148 static int ice_debugfs_module_open(struct inode *inode, struct file *filp) in ice_debugfs_module_open() 154 * ice_debugfs_module_write - write into 'module' file 155 * @filp: the opened file 158 * @ppos: file position offset 161 ice_debugfs_module_write(struct file *fil [all...] |
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | debugfs.c | 126 static int ath11k_open_pdev_stats(struct inode *inode, struct file *file) in ath11k_open_pdev_stats() argument 159 file->private_data = buf; in ath11k_open_pdev_stats() 172 static int ath11k_release_pdev_stats(struct inode *inode, struct file *file) in ath11k_release_pdev_stats() argument 174 vfree(file->private_data); in ath11k_release_pdev_stats() 179 static ssize_t ath11k_read_pdev_stats(struct file *file, in ath11k_read_pdev_stats() argument 183 const char *buf = file->private_data; in ath11k_read_pdev_stats() 197 static int ath11k_open_vdev_stats(struct inode *inode, struct file *fil argument 243 ath11k_release_vdev_stats(struct inode * inode,struct file * file) ath11k_release_vdev_stats() argument 250 ath11k_read_vdev_stats(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) ath11k_read_vdev_stats() argument 268 ath11k_open_bcn_stats(struct inode * inode,struct file * file) ath11k_open_bcn_stats() argument 327 ath11k_release_bcn_stats(struct inode * inode,struct file * file) ath11k_release_bcn_stats() argument 334 ath11k_read_bcn_stats(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) ath11k_read_bcn_stats() argument 352 ath11k_read_simulate_fw_crash(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) ath11k_read_simulate_fw_crash() argument 371 ath11k_write_simulate_fw_crash(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) ath11k_write_simulate_fw_crash() argument 440 ath11k_write_enable_extd_tx_stats(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) ath11k_write_enable_extd_tx_stats() argument 471 ath11k_read_enable_extd_tx_stats(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) ath11k_read_enable_extd_tx_stats() argument 494 ath11k_write_extd_rx_stats(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) ath11k_write_extd_rx_stats() argument 570 ath11k_read_extd_rx_stats(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) ath11k_read_extd_rx_stats() argument 658 ath11k_debugfs_dump_soc_dp_stats(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) ath11k_debugfs_dump_soc_dp_stats() argument 735 ath11k_write_fw_dbglog(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) ath11k_write_fw_dbglog() argument 798 ath11k_open_sram_dump(struct inode * inode,struct file * file) ath11k_open_sram_dump() argument 823 ath11k_read_sram_dump(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) ath11k_read_sram_dump() argument 839 ath11k_release_sram_dump(struct inode * inode,struct file * file) ath11k_release_sram_dump() argument 947 ath11k_write_pktlog_filter(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) ath11k_write_pktlog_filter() argument 1079 ath11k_read_pktlog_filter(struct file * file,char __user * ubuf,size_t count,loff_t * ppos) ath11k_read_pktlog_filter() argument 1103 ath11k_write_simulate_radar(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) ath11k_write_simulate_radar() argument 1122 ath11k_debug_dump_dbr_entries(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) ath11k_debug_dump_dbr_entries() argument 1233 ath11k_debugfs_write_enable_dbr_dbg(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) ath11k_debugfs_write_enable_dbr_dbg() argument 1285 ath11k_write_ps_timekeeper_enable(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) ath11k_write_ps_timekeeper_enable() argument 1316 ath11k_read_ps_timekeeper_enable(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) ath11k_read_ps_timekeeper_enable() argument 1350 ath11k_write_reset_ps_duration(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) ath11k_write_reset_ps_duration() argument 1403 ath11k_write_ps_state_enable(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) ath11k_write_ps_state_enable() argument 1449 ath11k_read_ps_state_enable(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) ath11k_read_ps_state_enable() argument 1554 ath11k_write_twt_add_dialog(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) ath11k_write_twt_add_dialog() argument 1630 ath11k_write_twt_del_dialog(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) ath11k_write_twt_del_dialog() argument 1677 ath11k_write_twt_pause_dialog(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) ath11k_write_twt_pause_dialog() argument 1716 ath11k_write_twt_resume_dialog(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) ath11k_write_twt_resume_dialog() argument [all...] |
/linux/drivers/staging/media/av7110/ |
H A D | av7110_ca.c | 74 * CI link layer file ops 110 static int ci_ll_reset(struct dvb_ringbuffer *cibuf, struct file *file, in ci_ll_reset() argument 136 static ssize_t ci_ll_write(struct dvb_ringbuffer *cibuf, struct file *file, in ci_ll_write() argument 140 int non_blocking = file->f_flags & O_NONBLOCK; in ci_ll_write() 175 static ssize_t ci_ll_read(struct dvb_ringbuffer *cibuf, struct file *file, in ci_ll_read() argument 179 int non_blocking = file->f_flags & O_NONBLOCK; in ci_ll_read() 201 static int dvb_ca_open(struct inode *inode, struct file *fil argument 215 dvb_ca_poll(struct file * file,poll_table * wait) dvb_ca_poll() argument 237 dvb_ca_ioctl(struct file * file,unsigned int cmd,void * parg) dvb_ca_ioctl() argument 328 dvb_ca_write(struct file * file,const char __user * buf,size_t count,loff_t * ppos) dvb_ca_write() argument 338 dvb_ca_read(struct file * file,char __user * buf,size_t count,loff_t * ppos) dvb_ca_read() argument [all...] |
/linux/sound/soc/intel/avs/ |
H A D | debugfs.c | 52 static ssize_t fw_regs_read(struct file *file, char __user *to, size_t count, loff_t *ppos) in fw_regs_read() argument 54 struct avs_dev *adev = file->private_data; in fw_regs_read() 74 static ssize_t debug_window_read(struct file *file, char __user *to, size_t count, loff_t *ppos) in debug_window_read() argument 76 struct avs_dev *adev = file->private_data; in debug_window_read() 98 static ssize_t probe_points_read(struct file *file, char __user *to, size_t count, loff_t *ppos) in probe_points_read() argument 100 struct avs_dev *adev = file->private_data; in probe_points_read() 137 static ssize_t probe_points_write(struct file *fil argument 174 probe_points_disconnect_write(struct file * file,const char __user * from,size_t count,loff_t * ppos) probe_points_disconnect_write() argument 211 strace_read(struct file * file,char __user * to,size_t count,loff_t * ppos) strace_read() argument 232 strace_open(struct inode * inode,struct file * file) strace_open() argument 251 strace_release(struct inode * inode,struct file * file) strace_release() argument 350 trace_control_read(struct file * file,char __user * to,size_t count,loff_t * ppos) trace_control_read() argument 361 trace_control_write(struct file * file,const char __user * from,size_t count,loff_t * ppos) trace_control_write() argument [all...] |
/linux/drivers/bluetooth/ |
H A D | btmrvl_debugfs.c | 21 static ssize_t btmrvl_hscfgcmd_write(struct file *file, in btmrvl_hscfgcmd_write() argument 24 struct btmrvl_private *priv = file->private_data; in btmrvl_hscfgcmd_write() 41 static ssize_t btmrvl_hscfgcmd_read(struct file *file, char __user *userbuf, in btmrvl_hscfgcmd_read() argument 44 struct btmrvl_private *priv = file->private_data; in btmrvl_hscfgcmd_read() 61 static ssize_t btmrvl_pscmd_write(struct file *file, const char __user *ubuf, in btmrvl_pscmd_write() argument 64 struct btmrvl_private *priv = file->private_data; in btmrvl_pscmd_write() 82 static ssize_t btmrvl_pscmd_read(struct file *fil argument 101 btmrvl_hscmd_write(struct file * file,const char __user * ubuf,size_t count,loff_t * ppos) btmrvl_hscmd_write() argument 120 btmrvl_hscmd_read(struct file * file,char __user * userbuf,size_t count,loff_t * ppos) btmrvl_hscmd_read() argument [all...] |
/linux/drivers/char/tpm/ |
H A D | tpm-dev.h | 24 void tpm_common_open(struct file *file, struct tpm_chip *chip, 26 ssize_t tpm_common_read(struct file *file, char __user *buf, 28 ssize_t tpm_common_write(struct file *file, const char __user *buf, 30 __poll_t tpm_common_poll(struct file *file, poll_table *wait); 32 void tpm_common_release(struct file *file, struc [all...] |
/linux/Documentation/filesystems/ |
H A D | vfs.rst | 4 Overview of the Linux Virtual File System 16 The Virtual File System (also known as the Virtual Filesystem Switch) is 58 like open(2) the file, or stat(2) it to peek at the inode data. The 63 The File Object 66 Opening a file requires another operation: allocation of a file 67 structure (this is the kernel-side implementation of file descriptors). 68 The freshly allocated file structure is initialized with a pointer to 69 the dentry and a set of file operation member functions. These are 70 taken from the inode data. The open() file metho [all...] |
/linux/arch/um/drivers/ |
H A D | ubd_kern.c | 132 /* backing file name */ 133 char *file; member 134 /* backing file fd */ 145 /* name (and fd, below) of the file opened for writing, either the 146 * backing or the cow file. */ 147 char *file; member 164 .file = NULL, \ 172 .file = NULL, \ 230 char *file, *backing_file, *serial; in ubd_setup_common() local 260 if(ubd_dev->file ! in ubd_setup_common() 489 char *file; ubd_file_size() local 535 backing_file_mismatch(char * file,__u64 size,time64_t mtime) backing_file_mismatch() argument 601 open_ubd_file(char * file,struct openflags * openflags,int shared,char ** backing_file_out,int * bitmap_offset_out,unsigned long * bitmap_len_out,int * data_offset_out,int * create_cow_out) open_ubd_file() argument [all...] |
/linux/io_uring/ |
H A D | openclose.c | 5 #include <linux/file.h> 22 struct file *file; member 31 struct file *file; member 37 struct file *file; member 120 struct file *file; in io_openat2() local 142 file in io_openat2() 230 struct file *file; io_close() local 309 struct file *file; global() member [all...] |
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | debugfs.c | 49 mt7915_sys_recovery_set(struct file *file, const char __user *user_buf, in mt7915_sys_recovery_set() argument 52 struct mt7915_phy *phy = file->private_data; in mt7915_sys_recovery_set() 125 mt7915_sys_recovery_get(struct file *file, char __user *user_buf, in mt7915_sys_recovery_get() argument 128 struct mt7915_phy *phy = file->private_data; in mt7915_sys_recovery_get() 265 static int mt7915_muru_stats_show(struct seq_file *file, void *data) in mt7915_muru_stats_show() argument 267 struct mt7915_phy *phy = file->private; in mt7915_muru_stats_show() 286 seq_puts(file, "Please enable muru_debug first.\n"); in mt7915_muru_stats_show() 297 seq_puts(file, "[No in mt7915_muru_stats_show() 666 mt7915_fw_util_wm_show(struct seq_file * file,void * data) mt7915_fw_util_wm_show() argument 687 mt7915_fw_util_wa_show(struct seq_file * file,void * data) mt7915_fw_util_wa_show() argument 704 mt7915_ampdu_stat_read_phy(struct mt7915_phy * phy,struct seq_file * file) mt7915_ampdu_stat_read_phy() argument 781 mt7915_tx_stats_show(struct seq_file * file,void * data) mt7915_tx_stats_show() argument 873 mt7915_hw_queues_show(struct seq_file * file,void * data) mt7915_hw_queues_show() argument 943 mt7915_xmit_queues_show(struct seq_file * file,void * data) mt7915_xmit_queues_show() argument 994 mt7915_rate_txpower_get(struct file * file,char __user * user_buf,size_t count,loff_t * ppos) mt7915_rate_txpower_get() argument 1071 mt7915_rate_txpower_set(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) mt7915_rate_txpower_set() argument 1336 mt7915_sta_fixed_rate_set(struct file * file,const char __user * user_buf,size_t count,loff_t * ppos) mt7915_sta_fixed_rate_set() argument [all...] |
/linux/scripts/ |
H A D | parse-maintainers.pl | 33 --input => MAINTAINERS file to read (default: MAINTAINERS) 34 --output => sorted MAINTAINERS file to write (default: MAINTAINERS.new) 35 --section => new sorted MAINTAINERS file to write to (default: SECTION.new) 46 P: URI or file for subsystem specific coding styles 48 F: File and directory pattern 49 X: File and directory exclusion pattern 50 N: File glob 54 regexes are not written to the output file but are written to the 55 section file. 113 open(my $file, '>', " [all...] |
/linux/Documentation/driver-api/early-userspace/ |
H A D | buffer-format.rst | 18 thus a single .cpio.gz file. 65 c_ino 8 bytes File inode number 66 c_mode 8 bytes File mode and permissions 67 c_uid 8 bytes File uid 68 c_gid 8 bytes File gid 72 c_maj 8 bytes Major part of file device number 73 c_min 8 bytes Minor part of file device number 82 on Linux, and encodes the file type and file permissions. 86 The c_filesize should be zero for any file whic [all...] |
/linux/include/linux/ |
H A D | fsverity.h | 3 * fs-verity: read-only file-based authenticity protection 33 * Begin enabling verity on the given file. 35 * @filp: a readonly file descriptor for the file 39 * -EBUSY if verity is already being enabled on the given file. 45 int (*begin_enable_verity)(struct file *filp); 48 * End enabling verity on the given file. 50 * @filp: a readonly file descriptor for the file 67 int (*end_enable_verity)(struct file *fil [all...] |
H A D | memfd.h | 5 #include <linux/file.h> 8 extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg); 9 struct folio *memfd_alloc_folio(struct file *memfd, pgoff_t idx); 17 int memfd_check_seals_mmap(struct file *file, vm_flags_t *vm_flags_ptr); 19 static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned int a) in memfd_fcntl() 23 static inline struct folio *memfd_alloc_folio(struct file *memfd, pgoff_t idx) in memfd_alloc_folio() 27 static inline int memfd_check_seals_mmap(struct file *file, in memfd_check_seals_mmap() argument [all...] |
/linux/rust/kernel/drm/ |
H A D | file.rs | 3 //! DRM File objects. 11 /// Trait that must be implemented by DRM drivers to represent a DRM File (a client instance). 16 /// Open a new file (called when a client opens the DRM device). 20 /// An open DRM File. 26 pub struct File<T: DriverFile>(Opaque<bindings::drm_file>, PhantomData<T>); struct 28 impl<T: DriverFile> File<T> { implementation 35 pub unsafe fn from_raw<'a>(ptr: *mut bindings::drm_file) -> &'a File<T> { in from_raw() 49 /// Return a pinned reference to the driver file structure. 67 let file = unsafe { File in open_callback() localVariable 92 let file = unsafe { File::<T>::from_raw(raw_file) }; postclose_callback() localVariable 99 impl<T: DriverFile> super::private::Sealed for File<T> {} global() implementation [all...] |
/linux/security/landlock/ |
H A D | fs.c | 107 * By default, any IOCTL on a device file requires the 130 * close-on-exec and the file's buffered-IO and async flags. These in is_masked_device_ioctl() 139 * FIOQSIZE queries the size of a regular file, directory, or link. in is_masked_device_ioctl() 142 * other file types. in is_masked_device_ioctl() 146 * FIFREEZE and FITHAW freeze and thaw the file system which the in is_masked_device_ioctl() 147 * given file belongs to. Requires CAP_SYS_ADMIN. in is_masked_device_ioctl() 149 * These commands operate on the file system's superblock rather in is_masked_device_ioctl() 150 * than on the file itself. The same operations can also be in is_masked_device_ioctl() 151 * done through any other file or directory on the same file in is_masked_device_ioctl() 1577 get_required_file_open_access(const struct file * const file) get_required_file_open_access() argument 1595 hook_file_alloc_security(struct file * const file) hook_file_alloc_security() argument 1609 is_device(const struct file * const file) is_device() argument 1616 hook_file_open(struct file * const file) hook_file_open() argument 1691 hook_file_truncate(struct file * const file) hook_file_truncate() argument 1721 hook_file_ioctl_common(const struct file * const file,const unsigned int cmd,const bool is_compat) hook_file_ioctl_common() argument 1760 hook_file_ioctl(struct file * file,unsigned int cmd,unsigned long arg) hook_file_ioctl() argument 1766 hook_file_ioctl_compat(struct file * file,unsigned int cmd,unsigned long arg) hook_file_ioctl_compat() argument 1798 hook_file_set_fowner(struct file * file) hook_file_set_fowner() argument 1827 hook_file_free_security(struct file * file) hook_file_free_security() argument [all...] |
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-pci | 6 Writing a device location to this file will cause 22 Writing a device location to this file will cause the 38 Writing a device ID to this file will attempt to 57 Writing a device ID to this file will remove an ID 93 of files, with each file being named after a corresponding msi 101 the file is in (msi vs. msix) 146 For devices that have this support, a file named 147 reset_method is present in sysfs. Reading this file 162 For devices that have this support, a file named reset 163 will be present in sysfs. Writing 1 to this file [all...] |
/linux/sound/core/ |
H A D | hwdep.c | 42 static loff_t snd_hwdep_llseek(struct file * file, loff_t offset, int orig) in snd_hwdep_llseek() argument 44 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek() 46 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek() 50 static ssize_t snd_hwdep_read(struct file * file, char __user *buf, in snd_hwdep_read() argument 53 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read() 59 static ssize_t snd_hwdep_write(struct file * file, const char __user *buf, in snd_hwdep_write() argument 62 struct snd_hwdep *hw = file in snd_hwdep_write() 68 snd_hwdep_open(struct inode * inode,struct file * file) snd_hwdep_open() argument 146 snd_hwdep_release(struct inode * inode,struct file * file) snd_hwdep_release() argument 165 snd_hwdep_poll(struct file * file,poll_table * wait) snd_hwdep_poll() argument 236 snd_hwdep_ioctl(struct file * file,unsigned int cmd,unsigned long arg) snd_hwdep_ioctl() argument 256 snd_hwdep_mmap(struct file * file,struct vm_area_struct * vma) snd_hwdep_mmap() argument [all...] |
/linux/drivers/dma-buf/ |
H A D | sync_file.c | 10 #include <linux/file.h> 31 sync_file->file = anon_inode_getfile("sync_file", &sync_file_fops, in sync_file_alloc() 33 if (IS_ERR(sync_file->file)) in sync_file_alloc() 57 * sync_file_create() - creates a sync file 62 * sync_file can be released with fput(sync_file->file). Returns the 81 struct file *file = fget(fd); in sync_file_fdget() local 83 if (!file) in sync_file_fdget() 86 if (file->f_op != &sync_file_fops) in sync_file_fdget() 89 return file in sync_file_fdget() 185 sync_file_release(struct inode * inode,struct file * file) sync_file_release() argument 197 sync_file_poll(struct file * file,poll_table * wait) sync_file_poll() argument 382 sync_file_ioctl(struct file * file,unsigned int cmd,unsigned long arg) sync_file_ioctl() argument [all...] |
/linux/fs/nfsd/ |
H A D | vfs.c | 3 * File operations used by nfsd. Some of these have been ripped from 18 #include <linux/file.h> 296 * @fhp: the file handle of the directory 330 * Note: we compose the file handle now, but as the in nfsd_lookup() 443 * Changing the size of a file with SETATTR indirectly in __nfsd_setattr() 486 * nfsd_setattr - Set various file attributes. 525 * the owner of the file, and the caller is not privileged. In this in nfsd_setattr() 553 * The size case is special, it changes the file in addition to the in nfsd_setattr() 554 * attributes, and file systems don't expect it to be mixed with in nfsd_setattr() 612 * modified, but the server changed only the file mod in nfsd_setattr() 730 nfsd4_vfs_fallocate(struct svc_rqst * rqstp,struct svc_fh * fhp,struct file * file,loff_t offset,loff_t len,int flags) nfsd4_vfs_fallocate() argument 880 struct file *file; __nfsd_open() local 1014 nfsd_eof_on_read(struct file * file,loff_t offset,ssize_t len,size_t expected) nfsd_eof_on_read() argument 1025 nfsd_finish_read(struct svc_rqst * rqstp,struct svc_fh * fhp,struct file * file,loff_t offset,unsigned long * count,u32 * eof,ssize_t host_err) nfsd_finish_read() argument 1056 nfsd_splice_read(struct svc_rqst * rqstp,struct svc_fh * fhp,struct file * file,loff_t offset,unsigned long * count,u32 * eof) nfsd_splice_read() argument 1092 nfsd_iter_read(struct svc_rqst * rqstp,struct svc_fh * fhp,struct file * file,loff_t offset,unsigned long * count,unsigned int base,u32 * eof) nfsd_iter_read() argument 1136 wait_for_concurrent_writes(struct file * file) wait_for_concurrent_writes() argument 1182 struct file *file = nf->nf_file; nfsd_vfs_write() local 1304 struct file *file; nfsd_read() local 2168 nfsd_buffered_readdir(struct file * file,struct svc_fh * fhp,nfsd_filldir_t func,struct readdir_cd * cdp,loff_t * offsetp) nfsd_buffered_readdir() argument 2261 struct file *file; nfsd_readdir() local [all...] |
/linux/lib/kunit/ |
H A D | debugfs.c | 26 * /sys/kernel/debug/kunit/<testsuite>/run Write to this file to trigger 94 static int debugfs_release(struct inode *inode, struct file *file) in debugfs_release() argument 96 return single_release(inode, file); in debugfs_release() 99 static int debugfs_results_open(struct inode *inode, struct file *file) in debugfs_results_open() argument 105 return single_open(file, debugfs_print_results, suite); in debugfs_results_open() 109 * Print a usage message to the debugfs "run" file 116 seq_puts(seq, "Write to this file to trigger the test suite to run.\n"); in debugfs_print_run() 123 * The debugfs "run" file (/sy 127 debugfs_run_open(struct inode * inode,struct file * file) debugfs_run_open() argument 142 debugfs_run(struct file * file,const char __user * buf,size_t count,loff_t * ppos) debugfs_run() argument [all...] |