Home
last modified time | relevance | path

Searched refs:chrdev_name (Results 1 – 4 of 4) sorted by relevance

/linux-6.3-rc2/tools/gpio/
A Dgpio-utils.c63 char *chrdev_name; in gpiotools_request_line() local
68 ret = asprintf(&chrdev_name, "/dev/%s", device_name); in gpiotools_request_line()
72 fd = open(chrdev_name, 0); in gpiotools_request_line()
76 chrdev_name, strerror(errno)); in gpiotools_request_line()
98 free(chrdev_name); in gpiotools_request_line()
A Dlsgpio.c104 char *chrdev_name; in list_device() local
109 ret = asprintf(&chrdev_name, "/dev/%s", device_name); in list_device()
113 fd = open(chrdev_name, 0); in list_device()
116 fprintf(stderr, "Failed to open %s\n", chrdev_name); in list_device()
165 free(chrdev_name); in list_device()
A Dgpio-event-mon.c35 char *chrdev_name; in monitor_device() local
40 ret = asprintf(&chrdev_name, "/dev/%s", device_name); in monitor_device()
44 cfd = open(chrdev_name, 0); in monitor_device()
47 fprintf(stderr, "Failed to open %s\n", chrdev_name); in monitor_device()
138 free(chrdev_name); in monitor_device()
/linux-6.3-rc2/tools/iio/
A Diio_event_monitor.c341 char *chrdev_name; in main() local
365 ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); in main()
377 chrdev_name = strdup(device_name); in main()
378 if (!chrdev_name) in main()
385 fd = open(chrdev_name, 0); in main()
388 fprintf(stderr, "Failed to open %s\n", chrdev_name); in main()
441 free(chrdev_name); in main()

Completed in 9 milliseconds