Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 26) sorted by relevance

12

/samples/cgroup/
A Dcgroup_event_listener.c34 cfd = open(argv[1], O_RDONLY); in main()
43 event_control = open(event_control_path, O_WRONLY); in main()
/samples/watchdog/
A Dwatchdog-simple.c9 int fd = open("/dev/watchdog", O_WRONLY); in main()
/samples/timers/
A Dhpet_example.c89 fd = open(argv[0], O_RDONLY); in hpet_open_close()
109 fd = open(argv[0], O_RDONLY); in hpet_info()
149 fd = open(argv[0], O_RDONLY); in hpet_poll()
243 fd = open(argv[0], O_RDONLY); in hpet_fasync()
/samples/pfsm/
A Dpfsm-wakeup.c38 fd_rtc = open(RTC_A, O_RDONLY); in main()
45 fd_pfsm[i] = open(dev_pfsm[i], O_RDWR); in main()
/samples/user_events/
A Dexample.c45 data_fd = open(data_file, O_RDWR); in main()
/samples/bpf/
A Dtask_fd_query_user.c55 fd = open(buf, O_RDONLY); in bpf_find_probe_type()
77 fd = open(buf, O_RDONLY); in bpf_get_retprobe_bit()
240 kfd = open(buf, O_WRONLY | O_TRUNC, 0); in test_debug_fs_uprobe()
257 efd = open(buf, O_RDONLY, 0); in test_debug_fs_uprobe()
A Dsyscall_tp_user.c109 fd = open(filename, O_RDONLY); in test()
A Dcpustat_user.c157 fd = open(CPUFREQ_MAX_SYSFS_PATH, O_WRONLY); in cpu_stat_inject_cpu_frequency_event()
A Dhbm.c80 trace_fd = open(TRACEFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe2()
A Dtest_lru_dist.c174 dist_fd = open(dist_file, 0); in read_keys()
/samples/binderfs/
A Dbinderfs_example.c53 fd = open("/dev/binderfs/binder-control", O_RDONLY | O_CLOEXEC); in main()
/samples/hid/
A Dhid_mouse.c63 fd = open(uevent, O_RDONLY | O_NONBLOCK); in get_hid_id()
A Dhid_surface_dial.c76 fd = open(uevent, O_RDONLY | O_NONBLOCK); in get_hid_id()
/samples/pidfd/
A Dpidfd-metadata.c58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd()
/samples/hidraw/
A Dhid-example.c57 fd = open(device, O_RDWR|O_NONBLOCK); in main()
/samples/acrn/
A Dvm-sample.c61 hsm_fd = open("/dev/acrn_hsm", O_RDWR|O_CLOEXEC); in main()
/samples/rust/
A Drust_misc_device.rs160 fn open(_file: &File, misc: &MiscDeviceRegistration<Self>) -> Result<Pin<KBox<Self>>> { in open() method
/samples/auxdisplay/
A Dcfag12864b-example.c53 cfag12864b_fd = open(path, O_RDWR); in cfag12864b_init()
/samples/nitro_enclaves/
A Dne_ioctl_sample.c344 enclave_image_fd = open(enclave_image_path, O_RDONLY); in ne_load_enclave_image()
789 ne_dev_fd = open(NE_DEV_NAME, O_RDWR | O_CLOEXEC); in main()
/samples/qmi/
A Dqmi_sample_client.c332 .open = simple_open,
428 .open = simple_open,
/samples/vfio-mdev/
A DREADME.rst89 6. Using minicom or any terminal emulation program, open port /dev/ttyS1 or
/samples/uhid/
A Duhid-example.c416 fd = open(path, O_RDWR | O_CLOEXEC); in main()
/samples/seccomp/
A Duser-trap.c132 mem = open(path, O_RDONLY); in handle_req()
/samples/landlock/
A Dsandboxer.c153 path_beneath.parent_fd = open(path_list[i], O_PATH | O_CLOEXEC); in populate_ruleset_fs()
/samples/mei/
A Dmei-amt-version.c120 me->fd = open("/dev/mei0", O_RDWR); in mei_init()

Completed in 29 milliseconds

12