/linux-master/drivers/watchdog/ |
H A D | mtx-1_wdt.c | 24 * it is opened for the first time. After the first open 183 .open = mtx1_wdt_open,
|
/linux-master/drivers/vfio/pci/ |
H A D | vfio_pci_core.c | 1745 * Zap mmaps on open so that we can fault them in on access and therefore 1819 .open = vfio_pci_mmap_open, 2631 /* No other VFIO device in the set can be open. */
|
/linux-master/drivers/media/rc/ |
H A D | serial_ir.c | 523 rcdev->open = serial_ir_open;
|
H A D | st_rc.c | 304 rdev->open = st_rc_open;
|
/linux-master/drivers/media/i2c/ |
H A D | max9286.c | 810 * reverse channel as GPIO. We must open all channels while 1047 .open = max9286_open,
|
/linux-master/drivers/md/bcache/ |
H A D | super.c | 763 .open = open_dev, 771 .open = open_dev, 2553 err = "failed to open device";
|
/linux-master/drivers/hwtracing/intel_th/ |
H A D | core.c | 825 if (file->f_op->open) { 826 err = file->f_op->open(inode, file); 834 .open = intel_th_output_open,
|
/linux-master/drivers/block/zram/ |
H A D | zram_drv.c | 898 .open = simple_open, 2099 /* From now on, anyone can't open /dev/zram[0-9] */ 2120 /* zram was claimed to reset so open request fails */ 2127 .open = zram_open,
|
/linux-master/drivers/block/ |
H A D | pktcdvd.c | 86 static struct mutex ctl_mutex; /* Serialize open/close/setup/teardown */ 2163 * called at open time. 2174 * We need to re-open the cdrom device without O_NONBLOCK to be able 2176 * so open should not fail. 2521 /* This is safe, since we have a reference from open(). */ 2539 /* This is safe: open() is still holding a reference. */ 2609 .open = pkt_open, 2761 /* This is safe: open() is still holding a reference. */ 2833 .open = nonseekable_open,
|
/linux-master/block/ |
H A D | bdev.c | 126 * Someone else has handle exclusively open. Try invalidating instead. 569 * Finish exclusive open of a block device. Mark the device as exlusively 570 * open by the holder and wake up all waiters for exclusive open to finish. 599 * Abort claiming of a block device when the exclusive open failed. This can be 600 * also used when exclusive open is not actually desired and we just needed 667 if (disk->fops->open) { 668 ret = disk->fops->open(disk, mode); 737 * failed to open that block device. Also this doesn't make sense. 848 * bdev_open - open [all...] |
/linux-master/virt/kvm/ |
H A D | kvm_main.c | 129 * - If the open has been done by a 64bit task, and the KVM fd 140 .open = kvm_no_compat_open 6002 * avoids the race between open and the removal of the debugfs directory. 6114 .open = kvm_stat_data_open,
|
/linux-master/tools/testing/selftests/x86/ |
H A D | test_shadow_stack.c | 328 fd = open("/proc/self/mem", O_RDWR); 366 fd = open("/proc/self/mem", O_RDWR);
|
/linux-master/tools/testing/selftests/user_events/ |
H A D | ftrace_test.c | 29 int fd = open(trace_file, O_RDONLY); 111 int fd = open(enable_file, O_RDONLY); 132 fd = open(data_file, O_RDWR); 171 fd = open(data_file, O_RDWR); 213 self->status_fd = open(status_file, O_RDONLY); 216 self->data_fd = open(data_file, O_RDWR); 277 self->enable_fd = open(enable_file, O_RDWR); 289 /* File still open should return -EBUSY for delete */ 346 self->enable_fd = open(enable_file, O_RDWR); 384 self->enable_fd = open(enable_fil [all...] |
/linux-master/tools/testing/selftests/ring-buffer/ |
H A D | map_test.c | 28 fd = open(path, O_WRONLY | O_TRUNC); 90 desc->cpu_fd = open(cpu_path, O_RDONLY | O_NONBLOCK);
|
/linux-master/tools/testing/selftests/mm/ |
H A D | virtual_address_range.c | 106 fd = open("va_dump", O_CREAT | O_WRONLY, 0600); 109 ksft_test_result_skip("cannot create or open dump file\n"); 115 ksft_exit_fail_msg("cannot open /proc/self/maps\n");
|
H A D | soft-dirty.c | 140 test_fd = open(fname, O_RDWR | O_CREAT, 0664); 142 ksft_test_result_skip("Test %s open() file failed\n", __func__); 198 pagemap_fd = open(PAGEMAP_FILE_PATH, O_RDONLY); 200 ksft_exit_fail_msg("Failed to open %s\n", PAGEMAP_FILE_PATH);
|
H A D | ksm_functional_tests.c | 290 ksft_test_result_skip("open(\"/proc/self/ksm_stat\") failed\n"); 294 ksft_test_result_skip("open \"/sys/kernel/mm/ksm/use_zero_pages\" failed\n"); 677 mem_fd = open("/proc/self/mem", O_RDWR); 680 ksm_fd = open("/sys/kernel/mm/ksm/run", O_RDWR); 682 ksft_exit_skip("open(\"/sys/kernel/mm/ksm/run\") failed\n"); 683 ksm_full_scans_fd = open("/sys/kernel/mm/ksm/full_scans", O_RDONLY); 685 ksft_exit_skip("open(\"/sys/kernel/mm/ksm/full_scans\") failed\n"); 686 pagemap_fd = open("/proc/self/pagemap", O_RDONLY); 688 ksft_exit_skip("open(\"/proc/self/pagemap\") failed\n"); 689 proc_self_ksm_stat_fd = open("/pro [all...] |
H A D | gup_longterm.c | 458 gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR);
|
H A D | cow.c | 77 int fd = open("/sys/kernel/mm/transparent_hugepage/use_zero_page", 1800 gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR); 1801 pagemap_fd = open("/proc/self/pagemap", O_RDONLY);
|
/linux-master/tools/testing/selftests/memfd/ |
H A D | memfd_test.c | 94 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC); 97 printf("open sysctl failed: %m\n"); 109 int fd = open("/proc/sys/vm/memfd_noexec", O_WRONLY | O_CLOEXEC); 112 printf("open sysctl failed: %m\n"); 126 int fd = open("/proc/sys/vm/memfd_noexec", O_RDONLY | O_CLOEXEC); 129 printf("open sysctl failed: %m\n"); 157 fd = open(path, O_RDWR); 159 printf("re-open of existing fd %d failed\n", fd_in); 308 r = open(buf, flags, mode); 310 printf("open( [all...] |
H A D | fuse_test.c | 260 /* open FUSE memfd file for GUP testing */ 262 fd = open(argv[1], O_RDONLY | O_CLOEXEC); 264 printf("cannot open(\"%s\"): %m\n", argv[1]);
|
/linux-master/tools/testing/selftests/landlock/ |
H A D | fs_test.c | 413 * Mixing error codes from close(2) and open(2) should not lead to any 463 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 466 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC); 474 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC); 491 path_beneath.parent_fd = open(dir_s1d2, O_DIRECTORY | O_CLOEXEC); 505 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 587 path_beneath_file.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC); 592 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); 645 open(TMP_DIR, O_PATH | O_DIRECTORY | O_CLOEXEC); 672 path_beneath.parent_fd = open(file1_s1d [all...] |
H A D | base_test.c | 182 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); 205 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); 277 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); 305 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); 307 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); 317 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); 320 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
|
/linux-master/tools/testing/selftests/damon/ |
H A D | _damon_sysfs.py | 8 with open('/proc/mounts', 'r') as f: 22 with open(path, 'w') as f: 32 with open(path, 'r') as f:
|
/linux-master/scripts/ |
H A D | kernel-doc | 207 # https://www.oasis-open.org/docbook/documentation/reference/html/refentry.html 416 open IN, "$cmd --version 2>&1 |"; 2001 if (!open(IN,"<$file")) { 2002 print STDERR "Error: Cannot open file $file\n"; 2329 if (!open(IN_FILE,"<$file")) { 2330 print STDERR "Error: Cannot open file $file\n"; 2392 if (open(SOURCE_MAP, "<.tmp_filelist.txt")) {
|