/linux-6.6.21/tools/testing/selftests/ntb/ |
D | ntb_test.sh | 109 function write_file() function 184 if ! write_file "N" "$LOC/../link" 2> /dev/null; then 189 write_file "N" "$LOC/link_event" 196 write_file "Y" "$LOC/../link" 211 write_file "c $DB_VALID_MASK" "$REM/db" 224 write_file "s $MASK" "$LOC/peer_db" 227 write_file "c $DB_VALID_MASK" "$REM/db_mask" 228 write_file $DB_VALID_MASK "$REM/db_event" 229 write_file "s $DB_VALID_MASK" "$REM/db_mask" 231 write_file "c $DB_VALID_MASK" "$REM/db" [all …]
|
/linux-6.6.21/tools/testing/selftests/move_mount_set_group/ |
D | move_mount_set_group_test.c | 59 static int write_file(const char *path, const void *buf, size_t count) in write_file() function 88 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && in create_and_enter_userns() 93 if (write_file("/proc/self/uid_map", map, strlen(map))) in create_and_enter_userns() 98 if (write_file("/proc/self/gid_map", map, strlen(map))) in create_and_enter_userns()
|
/linux-6.6.21/tools/testing/selftests/mount/ |
D | nosymfollow-test.c | 85 static void write_file(char *filename, char *fmt, ...) in write_file() function 103 write_file("/proc/self/uid_map", "0 %d 1", uid); in create_and_enter_ns() 104 write_file("/proc/self/gid_map", "0 %d 1", gid); in create_and_enter_ns()
|
D | unprivileged-remount-test.c | 105 static void write_file(char *filename, char *fmt, ...) in write_file() function 168 write_file("/proc/self/uid_map", "0 %d 1", uid); in create_and_enter_userns() 169 write_file("/proc/self/gid_map", "0 %d 1", gid); in create_and_enter_userns()
|
/linux-6.6.21/tools/accounting/ |
D | procacct.c | 273 int write_file = 0; in main() local 290 write_file = 1; in main() 319 if (write_file) { in main()
|
D | getdelays.c | 293 int write_file = 0; in main() local 330 write_file = 1; in main() 392 if (write_file) { in main()
|
/linux-6.6.21/tools/testing/selftests/capabilities/ |
D | test_execve.c | 80 static void write_file(char *filename, char *fmt, ...) in write_file() function 124 write_file("/proc/self/uid_map", "%d %d 1", inner_uid, outer_uid); in create_and_enter_ns() 125 write_file("/proc/self/gid_map", "0 %d 1", outer_gid); in create_and_enter_ns()
|
/linux-6.6.21/tools/testing/selftests/powerpc/ |
D | utils.c | 126 int write_file(const char *path, const char *buf, size_t count) in write_file() function 183 return write_file(path, buf, count); in write_debugfs_file() 348 err = write_file(path, buffer, len); in write_long() 380 err = write_file(path, buffer, len); in write_ulong()
|
/linux-6.6.21/fs/hostfs/ |
D | hostfs_user_exp.c | 11 EXPORT_SYMBOL_GPL(write_file);
|
D | hostfs.h | 83 extern int write_file(int fd, unsigned long long *offset, const char *buf,
|
D | hostfs_user.c | 136 int write_file(int fd, unsigned long long *offset, const char *buf, int len) in write_file() function
|
D | hostfs_kern.c | 413 err = write_file(HOSTFS_I(inode)->fd, &base, buffer, count); in hostfs_writepage() 485 err = write_file(FILE_HOSTFS_I(file)->fd, &pos, buffer + from, copied); in hostfs_write_end()
|
/linux-6.6.21/tools/testing/selftests/mm/ |
D | split_huge_page_test.c | 53 static int write_file(const char *path, const char *buf, size_t buflen) in write_file() function 85 if (!write_file(SPLIT_DEBUGFS, input, ret + 1)) { in write_debugfs()
|
D | khugepaged.c | 185 static int write_file(const char *path, const char *buf, size_t buflen) in write_file() function 264 if (!write_file(path, val, strlen(val) + 1)) { in write_string() 300 if (!write_file(path, buf, strlen(buf) + 1)) { in _write_num() 701 write_file("/proc/sys/vm/drop_caches", "3", 2); in file_setup_area()
|
/linux-6.6.21/tools/testing/selftests/mount_setattr/ |
D | mount_setattr_test.c | 171 static int write_file(const char *path, const void *buf, size_t count) in write_file() function 200 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && in create_and_enter_userns() 205 if (write_file("/proc/self/uid_map", map, strlen(map))) in create_and_enter_userns() 210 if (write_file("/proc/self/gid_map", map, strlen(map))) in create_and_enter_userns() 1159 if (write_file(procfile, map, strlen(map))) in map_ids() 1165 if (write_file(procfile, map, strlen(map))) in map_ids()
|
/linux-6.6.21/tools/testing/selftests/safesetid/ |
D | safesetid-test.c | 95 static bool write_file(char *filename, char *fmt, ...) in write_file() function 258 success = write_file(map_file_name, "0 %d 1", uid); in test_userns()
|
/linux-6.6.21/tools/testing/selftests/powerpc/include/ |
D | utils.h | 54 int write_file(const char *path, const char *buf, size_t count);
|
/linux-6.6.21/scripts/ |
D | recordmcount.c | 329 static int write_file(const char *fname) in write_file() function 662 rc = write_file(fname); in do_file()
|
/linux-6.6.21/tools/tracing/latency/ |
D | latency-collector.c | 1340 static void write_file(const char *file, const char *cur, const char *new, in write_file() function 1368 write_file(TR_MAXLAT, NULL, "0", ERR_CLEANUP); in reset_max_latency() 1404 write_file(TR_CURRENT, NULL, NOP_TRACER, ERR_EXIT); in save_and_disable_tracer() 1442 write_file(TR_THRESH, save_state.thresh, threshold, ERR_CLEANUP); in enable_tracer() 1443 write_file(TR_CURRENT, NOP_TRACER, current_tracer, ERR_CLEANUP); in enable_tracer()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | tc_redirect.c | 71 static int write_file(const char *path, const char *newval) in write_file() function 388 err = write_file("/proc/sys/net/ipv4/ip_forward", enable ? "1" : "0"); in set_forwarding() 392 err = write_file("/proc/sys/net/ipv6/conf/all/forwarding", enable ? "1" : "0"); in set_forwarding()
|
/linux-6.6.21/tools/testing/selftests/powerpc/nx-gzip/ |
D | gzfht_test.c | 354 if (write_file(outname, outbuf, dsttotlen)) { in compress_file()
|
/linux-6.6.21/tools/testing/selftests/powerpc/ptrace/ |
D | core-pkey.c | 353 err = write_file(core_pattern_file, core_pattern, strlen(core_pattern)); in write_core_pattern()
|
/linux-6.6.21/fs/unicode/ |
D | mkutf8data.c | 3275 static void write_file(void) in write_file() function 3430 write_file(); in main()
|
/linux-6.6.21/Documentation/filesystems/ |
D | hpfs.rst | 234 Fixed write_file to zero file when writing behind file end
|