Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A Dattach_probe.c267 FILE *devnull; in test_uprobe_sleepable()
293 devnull = fopen("/dev/null", "r"); in test_attach_probe()
294 fclose(devnull); in test_attach_probe()
162 FILE *devnull; test_uprobe_lib() local
/linux/scripts/clang-tools/
H A Drun-clang-tools.py94 devnull = os.open(os.devnull, os.O_WRONLY)
95 os.dup2(devnull, sys.stdout.fileno())
/linux/scripts/
H A Ddiffconfig138 devnull = os.open(os.devnull, os.O_WRONLY)
139 os.dup2(devnull, sys.stdout.fileno())
H A Dcheckkconfigsymbols.py476 devnull = os.open(os.devnull, os.O_WRONLY)
477 os.dup2(devnull, sys.stdout.fileno())
/linux/security/apparmor/
H A Dfile.c726 struct file *devnull = NULL; in aa_inherit_files() local
736 devnull = dentry_open(&aa_null, O_RDWR, cred); in aa_inherit_files()
737 if (IS_ERR(devnull)) in aa_inherit_files()
738 devnull = NULL; in aa_inherit_files()
741 replace_fd(n - 1, devnull, 0); in aa_inherit_files()
743 if (devnull) in aa_inherit_files()
744 fput(devnull); in aa_inherit_files()
/linux/tools/perf/scripts/python/
H A Dintel-pt-events.py442 sys.stdout = open(os.devnull, 'w')
463 sys.stdout = open(os.devnull, 'w')
/linux/tools/testing/kunit/
H A Dkunit_tool_test.py482 tree = kunit_kernel.LinuxSourceTree('', kunitconfig_paths=[os.devnull],
495 tree = kunit_kernel.LinuxSourceTree(build_dir, kunitconfig_paths=[os.devnull])
517 kunitconfig_paths=[os.devnull])
/linux/security/selinux/
H A Dhooks.c2446 struct file *file, *devnull = NULL; in flush_unauthorized_files() local
2480 devnull = dentry_open(&selinux_null, O_RDWR, cred); in flush_unauthorized_files()
2481 if (IS_ERR(devnull)) in flush_unauthorized_files()
2482 devnull = NULL; in flush_unauthorized_files()
2485 replace_fd(n - 1, devnull, 0); in flush_unauthorized_files()
2487 if (devnull) in flush_unauthorized_files()
2488 fput(devnull); in flush_unauthorized_files()