Home
last modified time | relevance | path

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

/openbmc/linux/tools/iio/
H A Diio_generic_buffer.c275 static char *buf_dir_name = NULL; variable
295 if (buf_dir_name) { in cleanup()
296 ret = write_sysfs_int("enable", buf_dir_name, 0); in cleanup()
612 ret = asprintf(&buf_dir_name, in main()
619 if (stat(buf_dir_name, &st)) { in main()
621 buf_dir_name, errno, strerror(errno)); in main()
627 fprintf(stderr, "File '%s' is not a directory\n", buf_dir_name); in main()
678 ret = write_sysfs_int("length", buf_dir_name, buf_len); in main()
683 ret = write_sysfs_int("enable", buf_dir_name, 1); in main()
687 buf_dir_name, strerror(-ret)); in main()
[all …]