Lines Matching +full:write +full:- +full:protect
1 // SPDX-License-Identifier: GPL-2.0-only
32 return -EINVAL; in set_unload_heads_path()
33 strncpy(device_path, device, sizeof(device_path) - 1); in set_unload_heads_path()
35 snprintf(unload_heads_path, sizeof(unload_heads_path) - 1, in set_unload_heads_path()
65 if (write(fd, buf, strlen(buf)) != strlen(buf)) { in write_int()
66 perror("write"); in write_int()
80 static void protect(int seconds) in protect() function
102 protect(0); in ignore_me()
117 ret = -EINVAL; in main()
152 if ((ret == -1) && (errno == EINTR)) { in main()
162 protect(21); in main()