| /tools/testing/selftests/ntb/ |
| A D | ntb_test.sh | 109 function write_file() function 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" 231 write_file "c $DB_VALID_MASK" "$REM/db" 267 write_file "$VAL" "$LOC/spad$i" 301 write_file "$VAL" "$LOC/msg$i" 397 write_file 0 "$LOC/mw_trans$IDX" 450 write_file 1 $LOC/ready [all …]
|
| /tools/testing/selftests/damon/ |
| A D | _damon_sysfs.py | 22 def write_file(path, string): function 63 err = write_file( 67 err = write_file( 79 err = write_file( 83 err = write_file( 490 err = write_file( 494 return write_file( 514 err = write_file( 576 err = write_file( 582 err = write_file( [all …]
|
| /tools/testing/selftests/move_mount_set_group/ |
| A 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()
|
| /tools/testing/selftests/mount/ |
| A 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()
|
| A 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()
|
| /tools/testing/selftests/mm/ |
| A D | thp_settings.h | 66 int write_file(const char *path, const char *buf, size_t buflen);
|
| A D | thp_settings.c | 67 int write_file(const char *path, const char *buf, size_t buflen) in write_file() function 107 if (!write_file(path, buf, strlen(buf) + 1)) { in write_num() 169 if (!write_file(path, val, strlen(val) + 1)) { in thp_write_string()
|
| A D | split_huge_page_test.c | 59 static void write_file(const char *path, const char *buf, size_t buflen) in write_file() function 87 write_file(SPLIT_DEBUGFS, input, ret + 1); in write_debugfs()
|
| A D | khugepaged.c | 405 write_file("/proc/sys/vm/drop_caches", "3", 2); in file_setup_area()
|
| /tools/testing/selftests/capabilities/ |
| A D | test_execve.c | 72 static void write_file(char *filename, char *fmt, ...) in write_file() function 115 write_file("/proc/self/uid_map", "%d %d 1", inner_uid, outer_uid); in create_and_enter_ns() 116 write_file("/proc/self/gid_map", "0 %d 1", outer_gid); in create_and_enter_ns()
|
| /tools/accounting/ |
| A D | procacct.c | 273 int write_file = 0; in main() local 289 write_file = 1; in main() 318 if (write_file) { in main()
|
| A D | getdelays.c | 343 int write_file = 0; in main() local 380 write_file = 1; in main() 442 if (write_file) { in main()
|
| /tools/testing/selftests/powerpc/ |
| A 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()
|
| /tools/testing/selftests/filesystems/ |
| A D | utils.c | 453 static int write_file(const char *path, const char *val) in write_file() function 498 ret = write_file("/proc/self/uid_map", buf); in setup_userns() 501 ret = write_file("/proc/self/setgroups", "deny"); in setup_userns() 505 ret = write_file("/proc/self/gid_map", buf); in setup_userns()
|
| /tools/testing/selftests/filesystems/statmount/ |
| A D | statmount_test.c | 66 static void write_file(const char *path, const char *val) in write_file() function 140 write_file("/proc/self/uid_map", buf); in setup_namespace() 141 write_file("/proc/self/setgroups", "deny"); in setup_namespace() 143 write_file("/proc/self/gid_map", buf); in setup_namespace()
|
| /tools/testing/selftests/safesetid/ |
| A 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()
|
| /tools/testing/selftests/powerpc/include/ |
| A D | utils.h | 54 int write_file(const char *path, const char *buf, size_t count);
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | token.c | 228 static int write_file(const char *path, const void *buf, size_t count) in write_file() function 257 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && in create_and_enter_userns() 262 if (write_file("/proc/self/uid_map", map, strlen(map))) in create_and_enter_userns() 267 if (write_file("/proc/self/gid_map", map, strlen(map))) in create_and_enter_userns()
|
| A D | tc_redirect.c | 75 static int write_file(const char *path, const char *newval) in write_file() function 477 err = write_file("/proc/sys/net/ipv4/ip_forward", enable ? "1" : "0"); in set_forwarding() 481 err = write_file("/proc/sys/net/ipv6/conf/all/forwarding", enable ? "1" : "0"); in set_forwarding()
|
| /tools/tracing/latency/ |
| A 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()
|
| /tools/testing/selftests/mount_setattr/ |
| A D | mount_setattr_test.c | 161 static int write_file(const char *path, const void *buf, size_t count) in write_file() function 190 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && in create_and_enter_userns() 195 if (write_file("/proc/self/uid_map", map, strlen(map))) in create_and_enter_userns() 200 if (write_file("/proc/self/gid_map", map, strlen(map))) in create_and_enter_userns() 1153 if (write_file(procfile, map, strlen(map))) in map_ids() 1159 if (write_file(procfile, map, strlen(map))) in map_ids()
|
| /tools/testing/selftests/powerpc/nx-gzip/ |
| A D | gzfht_test.c | 354 if (write_file(outname, outbuf, dsttotlen)) { in compress_file()
|
| /tools/testing/selftests/powerpc/ptrace/ |
| A D | core-pkey.c | 324 err = write_file(core_pattern_file, core_pattern, strlen(core_pattern)); in write_core_pattern()
|
| /tools/testing/selftests/landlock/ |
| A D | fs_test.c | 5757 TEST_F(audit_layout1, write_file) in TEST_F() argument
|