| /kernel/linux/linux-6.6/sound/core/ |
| H A D | misc.c | 158 * to be called at releasing the relevant file object. 189 int snd_fasync_helper(int fd, struct file *file, int on, in snd_fasync_helper() argument 214 return fasync_helper(fd, file, on, &fasync->fasync); in snd_fasync_helper()
|
| /kernel/linux/linux-6.6/sound/core/seq/oss/ |
| H A D | seq_oss_readq.c | 206 snd_seq_oss_readq_poll(struct seq_oss_readq *q, struct file *file, poll_table *wait) in snd_seq_oss_readq_poll() argument 208 poll_wait(file, &q->midi_sleep, wait); in snd_seq_oss_readq_poll()
|
| /kernel/linux/linux-6.6/tools/verification/dot2/ |
| H A D | dot2k.py | 57 raise Exception("Cannot open the file: %s" % path) 151 file = open(path, 'w') 155 print("Fail creating file: %s" % path) 157 file.write(content) 159 file.close()
|
| /kernel/linux/linux-6.6/lib/ |
| H A D | error-inject.c | 217 struct dentry *dir, *file; in ei_debugfs_init() local 221 file = debugfs_create_file("list", 0444, dir, NULL, &ei_fops); in ei_debugfs_init() 222 if (!file) { in ei_debugfs_init()
|
| /kernel/linux/linux-6.6/net/netfilter/ |
| H A D | xt_owner.c | 12 #include <linux/file.h> 66 const struct file *filp; in owner_mt() 80 filp = sk->sk_socket ? sk->sk_socket->file : NULL; in owner_mt()
|
| /kernel/linux/linux-5.10/drivers/macintosh/ |
| H A D | via-pmu.c | 925 static int pmu_options_proc_open(struct inode *inode, struct file *file) in pmu_options_proc_open() argument 927 return single_open(file, pmu_options_proc_show, NULL); in pmu_options_proc_open() 930 static ssize_t pmu_options_proc_write(struct file *file, in pmu_options_proc_write() argument 2153 pmu_open(struct inode *inode, struct file *file) in pmu_open() argument 2171 file->private_data = pp; in pmu_open() 2177 pmu_read(struct file *file, cha argument 2227 pmu_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) pmu_write() argument 2251 pmu_release(struct inode *inode, struct file *file) pmu_release() argument [all...] |
| /kernel/linux/linux-5.10/drivers/media/platform/marvell-ccic/ |
| H A D | mcam-core.c | 1325 static int mcam_vidioc_querycap(struct file *file, void *priv, in mcam_vidioc_querycap() argument 1328 struct mcam_camera *cam = video_drvdata(file); in mcam_vidioc_querycap() 1337 static int mcam_vidioc_enum_fmt_vid_cap(struct file *filp, in mcam_vidioc_enum_fmt_vid_cap() 1346 static int mcam_vidioc_try_fmt_vid_cap(struct file *filp, void *priv, in mcam_vidioc_try_fmt_vid_cap() 1377 static int mcam_vidioc_s_fmt_vid_cap(struct file *filp, void *priv, in mcam_vidioc_s_fmt_vid_cap() 1424 static int mcam_vidioc_g_fmt_vid_cap(struct file *filp, void *priv, in mcam_vidioc_g_fmt_vid_cap() 1436 static int mcam_vidioc_enum_input(struct file *filp, void *priv, in mcam_vidioc_enum_input() 1447 static int mcam_vidioc_g_input(struct file *filp, void *priv, unsigned int *i) in mcam_vidioc_g_input() 1453 static int mcam_vidioc_s_input(struct file *fil 1547 mcam_vidioc_g_register(struct file *file, void *priv, struct v4l2_dbg_register *reg) mcam_vidioc_g_register() argument 1559 mcam_vidioc_s_register(struct file *file, void *priv, const struct v4l2_dbg_register *reg) mcam_vidioc_s_register() argument [all...] |
| /kernel/linux/linux-5.10/fs/ceph/ |
| H A D | addr.c | 178 static int ceph_do_readpage(struct file *filp, struct page *page) in ceph_do_readpage() 212 dout("readpage ino %llx.%llx file %p off %llu len %llu page %p index %lu\n", in ceph_do_readpage() 254 static int ceph_readpage(struct file *filp, struct page *page) in ceph_readpage() 453 static int ceph_readpages(struct file *file, struct address_space *mapping, in ceph_readpages() argument 456 struct inode *inode = file_inode(file); in ceph_readpages() 458 struct ceph_file_info *fi = file->private_data; in ceph_readpages() 474 dout("readpages %p file %p ctx %p nr_pages %d max %d\n", in ceph_readpages() 475 inode, file, rw_ctx, nr_pages, max); in ceph_readpages() 484 dout("readpages %p file in ceph_readpages() 1340 ceph_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata) ceph_write_begin() argument 1413 ceph_write_end(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata) ceph_write_end() argument 1881 ceph_mmap(struct file *file, struct vm_area_struct *vma) ceph_mmap() argument [all...] |
| /kernel/linux/linux-5.10/fs/ubifs/ |
| H A D | dir.c | 2 /* * This file is part of UBIFS. 13 * This file implements directory operations. 15 * All FS operations in this file allocate budget before writing anything to the 22 * All operations in this file write all inodes which they change straight 25 * target inode. This was done to simplify file-system recovery which would 68 * @c: UBIFS file-system description object 91 * marking them dirty in file write path (see 'file_update_time()'). in ubifs_new_inode() 248 * This should not happen. Probably the file-system needs in ubifs_lookup() 347 ubifs_err(c, "cannot create regular file, error %d", err); in ubifs_create() 395 ubifs_err(c, "cannot create whiteout file, erro in create_whiteout() 556 ubifs_readdir(struct file *file, struct dir_context *ctx) ubifs_readdir() argument 715 ubifs_dir_release(struct inode *dir, struct file *file) ubifs_dir_release() argument 1693 ubifs_dir_open(struct inode *dir, struct file *file) ubifs_dir_open() argument [all...] |
| /kernel/linux/linux-6.6/drivers/media/platform/marvell/ |
| H A D | mcam-core.c | 1325 static int mcam_vidioc_querycap(struct file *file, void *priv, in mcam_vidioc_querycap() argument 1328 struct mcam_camera *cam = video_drvdata(file); in mcam_vidioc_querycap() 1337 static int mcam_vidioc_enum_fmt_vid_cap(struct file *filp, in mcam_vidioc_enum_fmt_vid_cap() 1346 static int mcam_vidioc_try_fmt_vid_cap(struct file *filp, void *priv, in mcam_vidioc_try_fmt_vid_cap() 1380 static int mcam_vidioc_s_fmt_vid_cap(struct file *filp, void *priv, in mcam_vidioc_s_fmt_vid_cap() 1427 static int mcam_vidioc_g_fmt_vid_cap(struct file *filp, void *priv, in mcam_vidioc_g_fmt_vid_cap() 1439 static int mcam_vidioc_enum_input(struct file *filp, void *priv, in mcam_vidioc_enum_input() 1450 static int mcam_vidioc_g_input(struct file *filp, void *priv, unsigned int *i) in mcam_vidioc_g_input() 1456 static int mcam_vidioc_s_input(struct file *fil 1550 mcam_vidioc_g_register(struct file *file, void *priv, struct v4l2_dbg_register *reg) mcam_vidioc_g_register() argument 1562 mcam_vidioc_s_register(struct file *file, void *priv, const struct v4l2_dbg_register *reg) mcam_vidioc_s_register() argument [all...] |
| /kernel/linux/linux-6.6/drivers/macintosh/ |
| H A D | via-pmu.c | 915 static int pmu_options_proc_open(struct inode *inode, struct file *file) in pmu_options_proc_open() argument 917 return single_open(file, pmu_options_proc_show, NULL); in pmu_options_proc_open() 920 static ssize_t pmu_options_proc_write(struct file *file, in pmu_options_proc_write() argument 2145 pmu_open(struct inode *inode, struct file *file) in pmu_open() argument 2163 file->private_data = pp; in pmu_open() 2169 pmu_read(struct file *file, cha argument 2219 pmu_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) pmu_write() argument 2243 pmu_release(struct inode *inode, struct file *file) pmu_release() argument [all...] |
| /kernel/linux/linux-6.6/kernel/ |
| H A D | seccomp.c | 40 #include <linux/file.h> 107 * @file: A reference to the file to install in the other task 110 * @flags: The flags for the new file descriptor. At the moment, only O_CLOEXEC 123 struct file *file; member 1075 fd = receive_fd(addfd->file, addfd->flags); in seccomp_handle_addfd() 1077 fd = receive_fd_replace(addfd->fd, addfd->file, addfd->flags); in seccomp_handle_addfd() 1417 * If this file is being closed because e.g. the task who owned it in seccomp_notify_detach() 1440 static int seccomp_notify_release(struct inode *inode, struct file *fil argument 1771 seccomp_notify_ioctl(struct file *file, unsigned int cmd, unsigned long arg) seccomp_notify_ioctl() argument 1800 seccomp_notify_poll(struct file *file, struct poll_table_struct *poll_tab) seccomp_notify_poll() argument [all...] |
| /kernel/linux/linux-6.6/mm/ |
| H A D | khugepaged.c | 931 * remapped to file after khugepaged reaquired the mmap_lock. in hugepage_vma_revalidate() 933 * hugepage_vma_check may return true for qualified file in hugepage_vma_revalidate() 1620 * PTE dirty? Shmem page is already dirty; file is read-only. in collapse_pte_mapped_thp() 1715 * Other vmas can still have the same file mapped hugely, but in retract_page_tables() 1768 * @file: file that collapse on 1789 struct file *file, pgoff_t start, in collapse_file() 1792 struct address_space *mapping = file->f_mapping; in collapse_file() 1801 bool is_shmem = shmem_file(file); in collapse_file() 1788 collapse_file(struct mm_struct *mm, unsigned long addr, struct file *file, pgoff_t start, struct collapse_control *cc) collapse_file() argument 2215 hpage_collapse_scan_file(struct mm_struct *mm, unsigned long addr, struct file *file, pgoff_t start, struct collapse_control *cc) hpage_collapse_scan_file() argument 2314 hpage_collapse_scan_file(struct mm_struct *mm, unsigned long addr, struct file *file, pgoff_t start, struct collapse_control *cc) hpage_collapse_scan_file() argument 2396 struct file *file = get_file(vma->vm_file); for_each_vma() local 2743 struct file *file = get_file(vma->vm_file); madvise_collapse() local [all...] |
| /kernel/linux/linux-5.10/drivers/auxdisplay/ |
| H A D | charlcd.c | 342 * These are the file operation function for user access to /dev/lcd 344 * setting file and ppos to NULL. 656 static ssize_t charlcd_write(struct file *file, const char __user *buf, in charlcd_write() argument 679 static int charlcd_open(struct inode *inode, struct file *file) in charlcd_open() argument 689 if (file->f_mode & FMODE_READ) /* device is write-only */ in charlcd_open() 696 return nonseekable_open(inode, file); in charlcd_open() 703 static int charlcd_release(struct inode *inode, struct file *file) in charlcd_release() argument [all...] |
| /kernel/linux/linux-5.10/drivers/bluetooth/ |
| H A D | hci_ldisc.c | 742 * file pointer to open file object for device 748 static int hci_uart_tty_ioctl(struct tty_struct *tty, struct file *file, in hci_uart_tty_ioctl() argument 797 err = n_tty_ioctl_helper(tty, file, cmd, arg); in hci_uart_tty_ioctl() 807 static ssize_t hci_uart_tty_read(struct tty_struct *tty, struct file *file, in hci_uart_tty_read() argument 814 static ssize_t hci_uart_tty_write(struct tty_struct *tty, struct file *file, in hci_uart_tty_write() argument 821 struct file *fil in hci_uart_tty_poll() [all...] |
| /kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/ |
| H A D | tdc.py | 235 print('', file=sys.stderr) 237 file=sys.stderr) 239 file=sys.stderr) 242 print("\n{} *** Aborting test run.".format(prefix), file=sys.stderr) 243 print("\n\n{} *** stdout ***".format(proc.stdout), file=sys.stderr) 244 print("\n\n{} *** stderr ***".format(proc.stderr), file=sys.stderr) 431 Open the JSON file containing the test cases and return them 438 print('IGNORING test case file {}\n\tBECAUSE: {}'.format(filename, jde)) 462 help='Path to the file in which results should be saved. ' + 478 '-f', '--file', narg [all...] |
| /kernel/linux/linux-5.10/drivers/media/pci/dt3155/ |
| H A D | dt3155.c | 292 static int dt3155_querycap(struct file *filp, void *p, in dt3155_querycap() 303 static int dt3155_enum_fmt_vid_cap(struct file *filp, in dt3155_enum_fmt_vid_cap() 312 static int dt3155_fmt_vid_cap(struct file *filp, void *p, struct v4l2_format *f) in dt3155_fmt_vid_cap() 326 static int dt3155_g_std(struct file *filp, void *p, v4l2_std_id *norm) in dt3155_g_std() 334 static int dt3155_s_std(struct file *filp, void *p, v4l2_std_id norm) in dt3155_s_std() 355 static int dt3155_enum_input(struct file *filp, void *p, in dt3155_enum_input() 371 static int dt3155_g_input(struct file *filp, void *p, unsigned int *i) in dt3155_g_input() 379 static int dt3155_s_input(struct file *filp, void *p, unsigned int i) in dt3155_s_input()
|
| /kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
| H A D | debugfs.c | 490 static ssize_t b43_debugfs_read(struct file *file, char __user *userbuf, in b43_debugfs_read() argument 504 dev = file->private_data; in b43_debugfs_read() 514 dfops = container_of(debugfs_real_fops(file), in b43_debugfs_read() 553 static ssize_t b43_debugfs_write(struct file *file, in b43_debugfs_write() argument 566 dev = file->private_data; in b43_debugfs_write() 576 dfops = container_of(debugfs_real_fops(file), in b43_debugfs_write()
|
| /kernel/linux/linux-5.10/drivers/usb/image/ |
| H A D | mdc800.c | 606 static int mdc800_device_open (struct inode* inode, struct file *file) in mdc800_device_open() argument 656 static int mdc800_device_release (struct inode* inode, struct file *file) in mdc800_device_release() argument 681 static ssize_t mdc800_device_read (struct file *file, char __user *buf, size_t len, loff_t *pos) in mdc800_device_read() argument 780 static ssize_t mdc800_device_write (struct file *file, const char __user *buf, size_t len, loff_t *pos) in mdc800_device_write() argument
|
| /kernel/linux/linux-5.10/drivers/xen/xenbus/ |
| H A D | xenbus_dev_frontend.c | 15 * of this source file (the "Software"), to deal in the Software without 125 static ssize_t xenbus_file_read(struct file *filp, in xenbus_file_read() 550 static ssize_t xenbus_file_write(struct file *filp, in xenbus_file_write() 649 static int xenbus_file_open(struct inode *inode, struct file *filp) in xenbus_file_open() 678 static int xenbus_file_release(struct inode *inode, struct file *filp) in xenbus_file_release() 687 static __poll_t xenbus_file_poll(struct file *file, poll_table *wait) in xenbus_file_poll() argument 689 struct xenbus_file_priv *u = file->private_data; in xenbus_file_poll() 691 poll_wait(file, &u->read_waitq, wait); in xenbus_file_poll()
|
| /kernel/linux/linux-5.10/fs/overlayfs/ |
| H A D | overlayfs.h | 63 * origin.fh - exported file handle of the lower file 91 /* On-disk format for "origin" file handle */ 99 u32 fid[]; /* file identifier should be 32bit aligned in-memory */ 102 /* In-memory and on-wire format for overlay file handle */ 302 struct file *ovl_path_open(struct path *path, int flags); 434 struct file *ovl_dir_real_file(const struct file *file, bool want_upper); 531 /* file [all...] |
| /kernel/linux/linux-6.6/drivers/xen/xenbus/ |
| H A D | xenbus_dev_frontend.c | 15 * of this source file (the "Software"), to deal in the Software without 125 static ssize_t xenbus_file_read(struct file *filp, in xenbus_file_read() 550 static ssize_t xenbus_file_write(struct file *filp, in xenbus_file_write() 649 static int xenbus_file_open(struct inode *inode, struct file *filp) in xenbus_file_open() 678 static int xenbus_file_release(struct inode *inode, struct file *filp) in xenbus_file_release() 687 static __poll_t xenbus_file_poll(struct file *file, poll_table *wait) in xenbus_file_poll() argument 689 struct xenbus_file_priv *u = file->private_data; in xenbus_file_poll() 691 poll_wait(file, &u->read_waitq, wait); in xenbus_file_poll()
|
| /kernel/linux/linux-6.6/drivers/usb/image/ |
| H A D | mdc800.c | 606 static int mdc800_device_open (struct inode* inode, struct file *file) in mdc800_device_open() argument 656 static int mdc800_device_release (struct inode* inode, struct file *file) in mdc800_device_release() argument 681 static ssize_t mdc800_device_read (struct file *file, char __user *buf, size_t len, loff_t *pos) in mdc800_device_read() argument 780 static ssize_t mdc800_device_write (struct file *file, const char __user *buf, size_t len, loff_t *pos) in mdc800_device_write() argument
|
| /kernel/linux/linux-6.6/drivers/media/pci/dt3155/ |
| H A D | dt3155.c | 292 static int dt3155_querycap(struct file *filp, void *p, in dt3155_querycap() 300 static int dt3155_enum_fmt_vid_cap(struct file *filp, in dt3155_enum_fmt_vid_cap() 309 static int dt3155_fmt_vid_cap(struct file *filp, void *p, struct v4l2_format *f) in dt3155_fmt_vid_cap() 323 static int dt3155_g_std(struct file *filp, void *p, v4l2_std_id *norm) in dt3155_g_std() 331 static int dt3155_s_std(struct file *filp, void *p, v4l2_std_id norm) in dt3155_s_std() 352 static int dt3155_enum_input(struct file *filp, void *p, in dt3155_enum_input() 368 static int dt3155_g_input(struct file *filp, void *p, unsigned int *i) in dt3155_g_input() 376 static int dt3155_s_input(struct file *filp, void *p, unsigned int i) in dt3155_s_input()
|
| /kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/ |
| H A D | debugfs.c | 490 static ssize_t b43_debugfs_read(struct file *file, char __user *userbuf, in b43_debugfs_read() argument 504 dev = file->private_data; in b43_debugfs_read() 514 dfops = container_of(debugfs_real_fops(file), in b43_debugfs_read() 553 static ssize_t b43_debugfs_write(struct file *file, in b43_debugfs_write() argument 566 dev = file->private_data; in b43_debugfs_write() 576 dfops = container_of(debugfs_real_fops(file), in b43_debugfs_write()
|