Home
last modified time | relevance | path

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

/tools/gpio/
Dgpio-event-mon.c37 char *chrdev_name; in monitor_device() local
42 ret = asprintf(&chrdev_name, "/dev/%s", device_name); in monitor_device()
46 fd = open(chrdev_name, 0); in monitor_device()
49 fprintf(stderr, "Failed to open %s\n", chrdev_name); in monitor_device()
122 free(chrdev_name); in monitor_device()
Dlsgpio.c75 char *chrdev_name; in list_device() local
80 ret = asprintf(&chrdev_name, "/dev/%s", device_name); in list_device()
84 fd = open(chrdev_name, 0); in list_device()
87 fprintf(stderr, "Failed to open %s\n", chrdev_name); in list_device()
135 free(chrdev_name); in list_device()
Dgpio-hammer.c32 char *chrdev_name; in hammer_device() local
39 ret = asprintf(&chrdev_name, "/dev/%s", device_name); in hammer_device()
43 fd = open(chrdev_name, 0); in hammer_device()
46 fprintf(stderr, "Failed to open %s\n", chrdev_name); in hammer_device()
137 free(chrdev_name); in hammer_device()
/tools/iio/
Diio_event_monitor.c266 char *chrdev_name; in main() local
282 ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num); in main()
290 chrdev_name = strdup(device_name); in main()
291 if (!chrdev_name) in main()
295 fd = open(chrdev_name, 0); in main()
298 fprintf(stderr, "Failed to open %s\n", chrdev_name); in main()
347 free(chrdev_name); in main()