Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Duprobe_autoattach.c21 FILE *devnull; in test_uprobe_autoattach() local
38 devnull = fopen(devnull_str, "r"); in test_uprobe_autoattach()
48 ASSERT_EQ(skel->bss->uretprobe_byname2_rc, (__u64)(long)devnull, in test_uprobe_autoattach()
71 fclose(devnull); in test_uprobe_autoattach()
Dattach_probe.c162 FILE *devnull; in test_uprobe_lib() local
188 devnull = fopen("/dev/null", "r"); in test_uprobe_lib()
189 fclose(devnull); in test_uprobe_lib()
/Linux-v6.6/scripts/clang-tools/
Drun-clang-tools.py76 devnull = os.open(os.devnull, os.O_WRONLY)
77 os.dup2(devnull, sys.stdout.fileno())
/Linux-v6.6/scripts/
Ddiffconfig138 devnull = os.open(os.devnull, os.O_WRONLY)
139 os.dup2(devnull, sys.stdout.fileno())
Dcheckkconfigsymbols.py476 devnull = os.open(os.devnull, os.O_WRONLY)
477 os.dup2(devnull, sys.stdout.fileno())
/Linux-v6.6/security/apparmor/
Dfile.c641 struct file *devnull = NULL; in aa_inherit_files() local
651 devnull = dentry_open(&aa_null, O_RDWR, cred); in aa_inherit_files()
652 if (IS_ERR(devnull)) in aa_inherit_files()
653 devnull = NULL; in aa_inherit_files()
656 replace_fd(n - 1, devnull, 0); in aa_inherit_files()
658 if (devnull) in aa_inherit_files()
659 fput(devnull); in aa_inherit_files()
/Linux-v6.6/tools/perf/scripts/python/
Dintel-pt-events.py442 sys.stdout = open(os.devnull, 'w')
463 sys.stdout = open(os.devnull, 'w')
/Linux-v6.6/security/selinux/
Dhooks.c2410 struct file *file, *devnull = NULL; in flush_unauthorized_files() local
2444 devnull = dentry_open(&selinux_null, O_RDWR, cred); in flush_unauthorized_files()
2445 if (IS_ERR(devnull)) in flush_unauthorized_files()
2446 devnull = NULL; in flush_unauthorized_files()
2449 replace_fd(n - 1, devnull, 0); in flush_unauthorized_files()
2451 if (devnull) in flush_unauthorized_files()
2452 fput(devnull); in flush_unauthorized_files()