| /kernel/linux/linux-5.10/drivers/s390/cio/ |
| H A D | chsc_sch.c | 876 static long chsc_ioctl(struct file *filp, unsigned int cmd, in chsc_ioctl() 916 static int chsc_open(struct inode *inode, struct file *file) in chsc_open() argument 922 return nonseekable_open(inode, file); in chsc_open() 925 static int chsc_release(struct inode *inode, struct file *filp) in chsc_release()
|
| /kernel/linux/linux-5.10/drivers/scsi/csiostor/ |
| H A D | csio_init.c | 2 * This file is part of the Chelsio FCoE driver for Linux. 8 * General Public License (GPL) Version 2, available from the file 64 csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in csio_mem_read() argument 67 loff_t avail = file_inode(file)->i_size; in csio_mem_read() 68 unsigned int mem = (uintptr_t)file->private_data & 3; in csio_mem_read() 69 struct csio_hw *hw = file->private_data - mem; in csio_mem_read()
|
| /kernel/linux/linux-5.10/drivers/scsi/megaraid/ |
| H A D | megaraid_mm.c | 21 static int mraid_mm_open(struct inode *, struct file *); 22 static long mraid_mm_unlocked_ioctl(struct file *, uint, unsigned long); 86 mraid_mm_open(struct inode *inode, struct file *filep) in mraid_mm_open() 98 * @filep : file operations pointer (ignored) 103 mraid_mm_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in mraid_mm_ioctl() 215 mraid_mm_unlocked_ioctl(struct file *filep, unsigned int cmd, in mraid_mm_unlocked_ioctl()
|
| /kernel/linux/linux-5.10/sound/usb/usx2y/ |
| H A D | usx2yhwdeppcm.c | 38 Currently rawusb dma pcm buffer transport (this file) is only available to snd-usb-usx2y. 606 static int snd_usx2y_hwdep_pcm_open(struct snd_hwdep *hw, struct file *file) in snd_usx2y_hwdep_pcm_open() argument 620 static int snd_usx2y_hwdep_pcm_release(struct snd_hwdep *hw, struct file *file) in snd_usx2y_hwdep_pcm_release() argument 664 static int snd_usx2y_hwdep_pcm_mmap(struct snd_hwdep * hw, struct file *filp, struct vm_area_struct *area) in snd_usx2y_hwdep_pcm_mmap()
|
| /kernel/linux/linux-5.10/fs/crypto/ |
| H A D | keyring.c | 9 * This file implements management of fscrypt master keys in the 209 * are still available at this time; this is important because after user file 686 int fscrypt_ioctl_add_key(struct file *filp, void __user *_uarg) in fscrypt_ioctl_add_key() 885 /* select an example file to show for debugging purposes */ in check_for_busy_inodes() 967 static int do_remove_key(struct file *filp, void __user *_uarg, bool all_users) in do_remove_key() 1056 int fscrypt_ioctl_remove_key(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key() 1062 int fscrypt_ioctl_remove_key_all_users(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key_all_users() 1078 * regular file in it (which can confuse the "incompletely removed" state with 1093 int fscrypt_ioctl_get_key_status(struct file *filp, void __user *uarg) in fscrypt_ioctl_get_key_status()
|
| /kernel/linux/linux-5.10/kernel/ |
| H A D | kcov.c | 10 #include <linux/file.h> 34 * kcov descriptor (one per opened debugfs file). 49 * - opened file descriptor 456 static int kcov_mmap(struct file *filep, struct vm_area_struct *vma) in kcov_mmap() 493 static int kcov_open(struct inode *inode, struct file *filep) in kcov_open() 508 static int kcov_close(struct inode *inode, struct file *filep) in kcov_close() 593 * and mmapped the file. Coverage collection is disabled only in kcov_ioctl_locked() 685 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() 1043 * The kcov debugfs file won't ever get removed and thus, in kcov_init()
|
| /kernel/linux/linux-5.10/fs/ocfs2/ |
| H A D | ioctl.c | 19 #include "file.h" 836 long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ocfs2_ioctl() 953 long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg) in ocfs2_compat_ioctl() argument 957 struct inode *inode = file_inode(file); in ocfs2_compat_ioctl() 995 return ocfs2_ioctl(file, cmd, arg); in ocfs2_compat_ioctl()
|
| /kernel/linux/linux-5.10/fs/jffs2/ |
| H A D | dir.c | 9 * For licensing information, see the file 'LICENCE' in this directory. 25 static int jffs2_readdir (struct file *, struct dir_context *); 120 static int jffs2_readdir(struct file *file, struct dir_context *ctx) in jffs2_readdir() argument 122 struct inode *inode = file_inode(file); in jffs2_readdir() 129 if (!dir_emit_dots(file, ctx)) in jffs2_readdir() 773 * file over a directory and vice versa, but if it's a directory, in jffs2_rename()
|
| /kernel/linux/linux-6.6/drivers/misc/vmw_vmci/ |
| H A D | vmci_host.c | 20 #include <linux/file.h> 68 u64 produce_page_file_size; /* Size of the file name array. */ 69 u64 consume_page_file_size; /* Size of the file name array. */ 119 static int vmci_host_open(struct inode *inode, struct file *filp) in vmci_host_open() 138 static int vmci_host_close(struct inode *inode, struct file *filp) in vmci_host_close() 165 static __poll_t vmci_host_poll(struct file *filp, poll_table *wait) in vmci_host_poll() 915 static long vmci_host_unlocked_ioctl(struct file *filp, in vmci_host_unlocked_ioctl()
|
| /kernel/linux/linux-6.6/fs/crypto/ |
| H A D | keyring.c | 9 * This file implements management of fscrypt master keys in the 214 * available at this time; this is important because after user file accesses 686 int fscrypt_ioctl_add_key(struct file *filp, void __user *_uarg) in fscrypt_ioctl_add_key() 917 /* select an example file to show for debugging purposes */ in check_for_busy_inodes() 999 static int do_remove_key(struct file *filp, void __user *_uarg, bool all_users) in do_remove_key() 1088 int fscrypt_ioctl_remove_key(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key() 1094 int fscrypt_ioctl_remove_key_all_users(struct file *filp, void __user *uarg) in fscrypt_ioctl_remove_key_all_users() 1110 * regular file in it (which can confuse the "incompletely removed" state with 1125 int fscrypt_ioctl_get_key_status(struct file *filp, void __user *uarg) in fscrypt_ioctl_get_key_status()
|
| /kernel/linux/linux-6.6/fs/jffs2/ |
| H A D | dir.c | 9 * For licensing information, see the file 'LICENCE' in this directory. 25 static int jffs2_readdir (struct file *, struct dir_context *); 123 static int jffs2_readdir(struct file *file, struct dir_context *ctx) in jffs2_readdir() argument 125 struct inode *inode = file_inode(file); in jffs2_readdir() 132 if (!dir_emit_dots(file, ctx)) in jffs2_readdir() 784 * file over a directory and vice versa, but if it's a directory, in jffs2_rename()
|
| /kernel/linux/linux-6.6/fs/ocfs2/ |
| H A D | ioctl.c | 20 #include "file.h" 840 long ocfs2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ocfs2_ioctl() 952 long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg) in ocfs2_compat_ioctl() argument 956 struct inode *inode = file_inode(file); in ocfs2_compat_ioctl() 988 return ocfs2_ioctl(file, cmd, arg); in ocfs2_compat_ioctl()
|
| /kernel/linux/linux-6.6/include/linux/ |
| H A D | fb.h | 24 struct file; 639 struct file *file); 642 extern int fb_deferred_io_fsync(struct file *file, loff_t start,
|
| /kernel/linux/linux-6.6/kernel/ |
| H A D | kcov.c | 10 #include <linux/file.h> 35 * kcov descriptor (one per opened debugfs file). 50 * - opened file descriptor 157 * KMSAN doesn't instrument this file, so it may not know area->list in kcov_remote_area_put() 477 static int kcov_mmap(struct file *filep, struct vm_area_struct *vma) in kcov_mmap() 508 static int kcov_open(struct inode *inode, struct file *filep) in kcov_open() 523 static int kcov_close(struct inode *inode, struct file *filep) in kcov_close() 589 * and mmapped the file. Coverage collection is disabled only in kcov_ioctl_locked() 681 static long kcov_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in kcov_ioctl() 1072 * The kcov debugfs file wo in kcov_init() [all...] |
| /kernel/linux/linux-6.6/drivers/net/phy/ |
| H A D | mdio_bus.c | 269 #define MDIO_BUS_STATS_ATTR_DECL(field, file) \ 271 .attr = { .attr = { .name = file, .mode = 0444 }, \ 279 .attr = { .attr = { .name = file, .mode = 0444 }, \ 295 #define MDIO_BUS_STATS_ADDR_ATTR_DECL(field, addr, file) \ 297 .attr = { .attr = { .name = file, .mode = 0444 }, \
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| H A D | drm_gem.c | 29 #include <linux/file.h> 55 /** @file drm_gem.c 57 * This file provides some of the base ioctls and library routines for 69 * struct file. However, file descriptors as handles to a struct file have 78 * ioctls. The objects themselves will still include the struct file so 128 struct file *filp; in drm_gem_object_init() 247 * Called at device or object close to release the file's 268 * drm_gem_handle_delete - deletes the given file 314 drm_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, u32 handle, u64 *offset) drm_gem_dumb_map_offset() argument [all...] |
| /kernel/linux/linux-6.6/drivers/infiniband/core/ |
| H A D | uverbs_ioctl.c | 6 * General Public License (GPL) Version 2, available from the file 613 long ib_uverbs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ib_uverbs_ioctl() 615 struct ib_uverbs_file *file = filp->private_data; in ib_uverbs_ioctl() local 636 srcu_key = srcu_read_lock(&file->device->disassociate_srcu); in ib_uverbs_ioctl() 637 err = ib_uverbs_cmd_verbs(file, &hdr, user_hdr->attrs); in ib_uverbs_ioctl() 638 srcu_read_unlock(&file->device->disassociate_srcu, srcu_key); in ib_uverbs_ioctl()
|
| /kernel/linux/linux-6.6/tools/mm/ |
| H A D | page-types.c | 146 [KPF_FILE] = "F:file", 161 const char *opt_file; /* file or directory path */ 165 static const char *opt_kpageflags;/* kpageflags file to parse */ 835 " -f|--file filename Walk file address space\n" in usage() 844 " -F|--kpageflags filename kpageflags file to parse\n" in usage() 892 FILE *file; in parse_pid() local 901 file = fopen(buf, "r"); in parse_pid() 902 if (!file) { in parse_pid() 907 while (fgets(buf, sizeof(buf), file) ! in parse_pid() [all...] |
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_dump.c | 14 const char *file; member 55 snprintf(test_file, sizeof(test_file), "%s.bpf.o", t->file); in test_btf_dump_case() 76 snprintf(out_file, sizeof(out_file), "/tmp/%s.output.XXXXXX", t->file); in test_btf_dump_case() 83 if (CHECK(f == NULL, "open_tmp", "failed to open file: %s(%d)\n", in test_btf_dump_case() 96 snprintf(test_file, sizeof(test_file), "progs/%s.c", t->file); in test_btf_dump_case() 102 snprintf(test_file, sizeof(test_file), "%s.c", t->file); in test_btf_dump_case() 656 " .llseek = (loff_t (*)(struct file *, loff_t, int))0xffffffffffffffff,"; in test_btf_dump_struct_data()
|
| /kernel/linux/linux-6.6/tools/perf/util/ |
| H A D | probe-file.c | 3 * probe-file.c : operate ftrace k/uprobe events files 27 #include "probe-file.h" 50 const char *config, *file; in print_configure_probe_event() local 53 file = "{k,u}probe_events"; in print_configure_probe_event() 56 file = "kprobe_events"; in print_configure_probe_event() 59 file = "uprobe_events"; in print_configure_probe_event() 69 tracing_path_mount(), file, config); in print_configure_probe_event() 999 /* Rollback to avoid cache file corruption */ in probe_cache_entry__write()
|
| /kernel/linux/linux-6.6/drivers/s390/cio/ |
| H A D | chsc_sch.c | 842 static long chsc_ioctl(struct file *filp, unsigned int cmd, in chsc_ioctl() 882 static int chsc_open(struct inode *inode, struct file *file) in chsc_open() argument 888 return nonseekable_open(inode, file); in chsc_open() 891 static int chsc_release(struct inode *inode, struct file *filp) in chsc_release()
|
| /kernel/linux/linux-6.6/drivers/scsi/csiostor/ |
| H A D | csio_init.c | 2 * This file is part of the Chelsio FCoE driver for Linux. 8 * General Public License (GPL) Version 2, available from the file 63 csio_mem_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in csio_mem_read() argument 66 loff_t avail = file_inode(file)->i_size; in csio_mem_read() 67 unsigned int mem = (uintptr_t)file->private_data & 3; in csio_mem_read() 68 struct csio_hw *hw = file->private_data - mem; in csio_mem_read()
|
| /kernel/linux/linux-6.6/drivers/scsi/megaraid/ |
| H A D | megaraid_mm.c | 21 static int mraid_mm_open(struct inode *, struct file *); 22 static long mraid_mm_unlocked_ioctl(struct file *, uint, unsigned long); 86 mraid_mm_open(struct inode *inode, struct file *filep) in mraid_mm_open() 98 * @filep : file operations pointer (ignored) 103 mraid_mm_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) in mraid_mm_ioctl() 215 mraid_mm_unlocked_ioctl(struct file *filep, unsigned int cmd, in mraid_mm_unlocked_ioctl()
|
| /kernel/linux/linux-6.6/sound/usb/usx2y/ |
| H A D | usx2yhwdeppcm.c | 38 Currently rawusb dma pcm buffer transport (this file) is only available to snd-usb-usx2y. 639 static int snd_usx2y_hwdep_pcm_open(struct snd_hwdep *hw, struct file *file) in snd_usx2y_hwdep_pcm_open() argument 652 static int snd_usx2y_hwdep_pcm_release(struct snd_hwdep *hw, struct file *file) in snd_usx2y_hwdep_pcm_release() argument 691 static int snd_usx2y_hwdep_pcm_mmap(struct snd_hwdep *hw, struct file *filp, struct vm_area_struct *area) in snd_usx2y_hwdep_pcm_mmap()
|
| /test/xts/dcts/communication/softbus_standard/common/ |
| H A D | net_trans_common.c | 4 * you may not use this file except in compliance with the License.
180 FILE* file = NULL;
in GetSoftbusPid() local 188 file = popen(CMD_PIDOF_SOFTBUS, "r");
in GetSoftbusPid() 189 if (file == NULL) {
in GetSoftbusPid() 194 (void)fgets(buffer, buffSize, file);
in GetSoftbusPid() 196 pclose(file);
in GetSoftbusPid() 203 LOG("[recv file]start,sid:%d, fileCnt:%d", sessionId, fileCnt);
in OnReceiveFileStarted() 214 LOG("[recv file]finish,sid:%d, fileCnt:%d", sessionId, fileCnt);
in OnReceiveFileFinished() 219 LOG("[recv file]trans error,sid:%d", sessionId);
in OnRecvFileTransError() 230 LOG("[send file]finis in OnSendFileFinished() [all...] |