Home
last modified time | relevance | path

Searched refs:write_file (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/ntb/
Dntb_test.sh109 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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/mount/
Dnosymfollow-test.c85 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()
Dunprivileged-remount-test.c105 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()
/kernel/linux/linux-5.10/tools/testing/selftests/capabilities/
Dtest_execve.c80 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()
/kernel/linux/linux-5.10/tools/testing/selftests/safesetid/
Dsafesetid-test.c83 static bool write_file(char *filename, char *fmt, ...) in write_file() function
197 success = write_file(map_file_name, "0 0 1", uid); in test_userns()
/kernel/linux/linux-5.10/tools/accounting/
Dgetdelays.c277 int write_file = 0; in main() local
314 write_file = 1; in main()
376 if (write_file) { in main()
/kernel/linux/linux-5.10/fs/hostfs/
Dhostfs.h82 extern int write_file(int fd, unsigned long long *offset, const char *buf,
Dhostfs_user.c135 int write_file(int fd, unsigned long long *offset, const char *buf, int len) in write_file() function
Dhostfs_kern.c413 err = write_file(HOSTFS_I(inode)->fd, &base, buffer, count); in hostfs_writepage()
483 err = write_file(FILE_HOSTFS_I(file)->fd, &pos, buffer + from, copied); in hostfs_write_end()
/kernel/linux/linux-5.10/scripts/
Drecordmcount.c317 static int write_file(const char *fname) in write_file() function
619 rc = write_file(fname); in do_file()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dkhugepaged.c144 static int write_file(const char *path, const char *buf, size_t buflen) in write_file() function
217 if (!write_file(path, val, strlen(val) + 1)) { in write_string()
257 if (!write_file(path, buf, strlen(buf) + 1)) { in write_num()
/kernel/linux/linux-5.10/fs/unicode/
Dmkutf8data.c3275 static void write_file(void) in write_file() function
3416 write_file(); in main()
/kernel/linux/linux-5.10/Documentation/filesystems/
Dhpfs.rst234 Fixed write_file to zero file when writing behind file end