Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/lib/
Dfault-inject.c106 unsigned int fail_nth = READ_ONCE(current->fail_nth); in should_fail() local
108 if (fail_nth) { in should_fail()
109 fail_nth--; in should_fail()
110 WRITE_ONCE(current->fail_nth, fail_nth); in should_fail()
111 if (!fail_nth) in should_fail()
/kernel/linux/linux-5.10/Documentation/fault-injection/
Dfault-injection.rst412 int i, err, res, fail_nth, fds[2];
417 fail_nth = open(buf, O_RDWR);
420 write(fail_nth, buf, strlen(buf));
423 pread(fail_nth, buf, sizeof(buf), 0);
/kernel/linux/linux-5.10/include/linux/
Dsched.h1350 unsigned int fail_nth; member
/kernel/linux/linux-5.10/fs/proc/
Dbase.c1430 task->fail_nth = n; in proc_fail_nth_write()
1446 len = snprintf(numbuf, sizeof(numbuf), "%u\n", task->fail_nth); in proc_fail_nth_read()
/kernel/linux/linux-5.10/kernel/
Dfork.c953 tsk->fail_nth = 0; in dup_task_struct()