Symbol: write_file
fs/hostfs/hostfs.h
52
extern int write_file(int fd, unsigned long long *offset, const char *buf,
fs/hostfs/hostfs_kern.c
417
ret = write_file(HOSTFS_I(inode)->fd, &pos, buffer, count);
fs/hostfs/hostfs_kern.c
473
err = write_file(FILE_HOSTFS_I(iocb->ki_filp)->fd, &pos, buffer, copied);
fs/hostfs/hostfs_user_exp.c
11
EXPORT_SYMBOL_GPL(write_file);
fs/unicode/mkutf8data.c
3431
write_file();
scripts/recordmcount.c
661
rc = write_file(fname);
tools/accounting/getdelays.c
461
int write_file = 0;
tools/accounting/getdelays.c
498
write_file = 1;
tools/accounting/getdelays.c
560
if (write_file) {
tools/accounting/procacct.c
273
int write_file = 0;
tools/accounting/procacct.c
289
write_file = 1;
tools/accounting/procacct.c
318
if (write_file) {
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
477
err = write_file("/proc/sys/net/ipv4/ip_forward", enable ? "1" : "0");
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
481
err = write_file("/proc/sys/net/ipv6/conf/all/forwarding", enable ? "1" : "0");
tools/testing/selftests/bpf/prog_tests/token.c
257
if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) &&
tools/testing/selftests/bpf/prog_tests/token.c
262
if (write_file("/proc/self/uid_map", map, strlen(map)))
tools/testing/selftests/bpf/prog_tests/token.c
267
if (write_file("/proc/self/gid_map", map, strlen(map)))
tools/testing/selftests/capabilities/test_execve.c
115
write_file("/proc/self/uid_map", "%d %d 1", inner_uid, outer_uid);
tools/testing/selftests/capabilities/test_execve.c
116
write_file("/proc/self/gid_map", "0 %d 1", outer_gid);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
55
write_file(_metadata, "/proc/self/uid_map", buf);
tools/testing/selftests/filesystems/fuse/fusectl_test.c
56
write_file(_metadata, "/proc/self/setgroups", "deny");
tools/testing/selftests/filesystems/fuse/fusectl_test.c
58
write_file(_metadata, "/proc/self/gid_map", buf);
tools/testing/selftests/filesystems/statmount/statmount_test.c
149
write_file("/proc/self/uid_map", buf);
tools/testing/selftests/filesystems/statmount/statmount_test.c
150
write_file("/proc/self/setgroups", "deny");
tools/testing/selftests/filesystems/statmount/statmount_test.c
152
write_file("/proc/self/gid_map", buf);
tools/testing/selftests/filesystems/utils.c
498
ret = write_file("/proc/self/uid_map", buf);
tools/testing/selftests/filesystems/utils.c
501
ret = write_file("/proc/self/setgroups", "deny");
tools/testing/selftests/filesystems/utils.c
505
ret = write_file("/proc/self/gid_map", buf);
tools/testing/selftests/filesystems/utils.c
530
ret = write_file("/proc/self/uid_map", buf);
tools/testing/selftests/filesystems/utils.c
533
ret = write_file("/proc/self/setgroups", "deny");
tools/testing/selftests/filesystems/utils.c
537
ret = write_file("/proc/self/gid_map", buf);
tools/testing/selftests/landlock/fs_test.c
7211
TEST_F(audit_layout1, write_file)
tools/testing/selftests/mm/khugepaged.c
405
write_file("/proc/sys/vm/drop_caches", "3", 2);
tools/testing/selftests/mm/split_huge_page_test.c
286
write_file(SPLIT_DEBUGFS, input, ret + 1);
tools/testing/selftests/mm/thp_settings.c
107
if (!write_file(path, buf, strlen(buf) + 1)) {
tools/testing/selftests/mm/thp_settings.c
169
if (!write_file(path, val, strlen(val) + 1)) {
tools/testing/selftests/mm/thp_settings.h
66
int write_file(const char *path, const char *buf, size_t buflen);
tools/testing/selftests/mount/nosymfollow-test.c
103
write_file("/proc/self/uid_map", "0 %d 1", uid);
tools/testing/selftests/mount/nosymfollow-test.c
104
write_file("/proc/self/gid_map", "0 %d 1", gid);
tools/testing/selftests/mount/unprivileged-remount-test.c
168
write_file("/proc/self/uid_map", "0 %d 1", uid);
tools/testing/selftests/mount/unprivileged-remount-test.c
169
write_file("/proc/self/gid_map", "0 %d 1", gid);
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1153
if (write_file(procfile, map, strlen(map)))
tools/testing/selftests/mount_setattr/mount_setattr_test.c
1159
if (write_file(procfile, map, strlen(map)))
tools/testing/selftests/mount_setattr/mount_setattr_test.c
190
if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) &&
tools/testing/selftests/mount_setattr/mount_setattr_test.c
195
if (write_file("/proc/self/uid_map", map, strlen(map)))
tools/testing/selftests/mount_setattr/mount_setattr_test.c
200
if (write_file("/proc/self/gid_map", map, strlen(map)))
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
88
if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) &&
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
93
if (write_file("/proc/self/uid_map", map, strlen(map)))
tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c
98
if (write_file("/proc/self/gid_map", map, strlen(map)))
tools/testing/selftests/powerpc/include/utils.h
54
int write_file(const char *path, const char *buf, size_t count);
tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c
354
if (write_file(outname, outbuf, dsttotlen)) {
tools/testing/selftests/powerpc/ptrace/core-pkey.c
324
err = write_file(core_pattern_file, core_pattern, strlen(core_pattern));
tools/testing/selftests/powerpc/utils.c
183
return write_file(path, buf, count);
tools/testing/selftests/powerpc/utils.c
348
err = write_file(path, buffer, len);
tools/testing/selftests/powerpc/utils.c
380
err = write_file(path, buffer, len);
tools/testing/selftests/safesetid/safesetid-test.c
258
success = write_file(map_file_name, "0 %d 1", uid);
tools/tracing/latency/latency-collector.c
1368
write_file(TR_MAXLAT, NULL, "0", ERR_CLEANUP);
tools/tracing/latency/latency-collector.c
1404
write_file(TR_CURRENT, NULL, NOP_TRACER, ERR_EXIT);
tools/tracing/latency/latency-collector.c
1442
write_file(TR_THRESH, save_state.thresh, threshold, ERR_CLEANUP);
tools/tracing/latency/latency-collector.c
1443
write_file(TR_CURRENT, NOP_TRACER, current_tracer, ERR_CLEANUP);