Searched refs:open (Results 26 - 50 of 2544) sorted by last modified time

1234567891011>>

/linux-master/drivers/watchdog/
H A Dmtx-1_wdt.c24 * it is opened for the first time. After the first open
183 .open = mtx1_wdt_open,
/linux-master/drivers/vfio/pci/
H A Dvfio_pci_core.c1745 * 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 Dserial_ir.c523 rcdev->open = serial_ir_open;
H A Dst_rc.c304 rdev->open = st_rc_open;
/linux-master/drivers/media/i2c/
H A Dmax9286.c810 * reverse channel as GPIO. We must open all channels while
1047 .open = max9286_open,
/linux-master/drivers/md/bcache/
H A Dsuper.c763 .open = open_dev,
771 .open = open_dev,
2553 err = "failed to open device";
/linux-master/drivers/hwtracing/intel_th/
H A Dcore.c825 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 Dzram_drv.c898 .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 Dpktcdvd.c86 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 Dbdev.c126 * 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 Dkvm_main.c129 * - 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 Dtest_shadow_stack.c328 fd = open("/proc/self/mem", O_RDWR);
366 fd = open("/proc/self/mem", O_RDWR);
/linux-master/tools/testing/selftests/user_events/
H A Dftrace_test.c29 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 Dmap_test.c28 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 Dvirtual_address_range.c106 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 Dsoft-dirty.c140 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 Dksm_functional_tests.c290 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 Dgup_longterm.c458 gup_fd = open("/sys/kernel/debug/gup_test", O_RDWR);
H A Dcow.c77 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 Dmemfd_test.c94 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 Dfuse_test.c260 /* 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 Dfs_test.c413 * 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 Dbase_test.c182 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.py8 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 Dkernel-doc207 # 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")) {

Completed in 450 milliseconds

1234567891011>>