Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/ntb/
Dntb_test.sh99 function read_file() function
147 PEER_PORT=$(read_file "${PEER_DIR}/port")
164 LOCAL_PORT=$(read_file "$LOC/port")
165 REMOTE_PORT=$(read_file "$REM/port")
191 if [[ $(read_file "$REM/link") != "N" ]]; then
209 DB_VALID_MASK=$(read_file "$LOC/db_valid_mask")
214 DB=$(read_file "$REM/db")
268 RVAL=$(read_file "$REM/../spad$i")
293 MSG_OUTBITS_MASK=$(read_file "$LOC/../msg_inbits")
294 MSG_INBITS_MASK=$(read_file "$REM/../msg_inbits")
[all …]
/Linux-v6.6/tools/testing/selftests/powerpc/
Dutils.c31 int read_file(const char *path, char *buf, size_t count, size_t *len) in read_file() function
159 err = read_file("/proc/self/auxv", buf, buf_size, NULL); in read_auxv()
174 return read_file(path, buf, count, NULL); in read_debugfs_file()
311 err = read_file(path, buffer, sizeof(buffer) - 1, NULL); in read_long()
323 err = read_file(path, buffer, sizeof(buffer) - 1, NULL); in read_ulong()
499 return read_file(path, result, result_size, NULL); in read_sysfs_file()
/Linux-v6.6/scripts/basic/
Dfixdep.c214 static void *read_file(const char *filename) in read_file() function
396 buf = read_file(p); in parse_dep_file()
429 buf = read_file(depfile); in main()
/Linux-v6.6/fs/hostfs/
Dhostfs_user_exp.c10 EXPORT_SYMBOL_GPL(read_file);
Dhostfs.h82 extern int read_file(int fd, unsigned long long *offset, char *buf, int len);
Dhostfs_user.c125 int read_file(int fd, unsigned long long *offset, char *buf, int len) in read_file() function
Dhostfs_kern.c441 bytes_read = read_file(FILE_HOSTFS_I(file)->fd, &start, buffer, in hostfs_read_folio()
/Linux-v6.6/scripts/
Dinsert-sys-cert.c228 static char *read_file(char *file_name, int *size) in read_file() function
310 cert = read_file(cert_file, &cert_size); in main()
/Linux-v6.6/tools/testing/selftests/powerpc/include/
Dutils.h53 int read_file(const char *path, char *buf, size_t count, size_t *len);
/Linux-v6.6/tools/testing/selftests/mm/
Dkhugepaged.c164 static int read_file(const char *path, char *buf, size_t buflen) in read_file() function
221 if (!read_file(path, buf, sizeof(buf))) { in read_string()
274 if (read_file(path, buf, sizeof(buf)) < 0) { in _read_num()
458 if (read_file(path, buf, sizeof(buf)) < 0) { in get_finfo()
/Linux-v6.6/tools/tracing/latency/
Dlatency-collector.c572 static char *read_file(const char *file, enum errhandling h) in read_file() function
629 maxlat = read_file(TR_MAXLAT, ERR_WARN); in cleanup_exit()
1380 tracer = read_file(TR_CURRENT, ERR_EXIT); in save_and_disable_tracer()
1381 orig_th = read_file(TR_THRESH, ERR_EXIT); in save_and_disable_tracer()
/Linux-v6.6/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c375 ret = read_file(core_pattern_file, core_pattern, PATH_MAX - 1, &len); in setup_core_pattern()
/Linux-v6.6/tools/perf/
Dbuiltin-inject.c1883 static int read_file(int fd, u64 offs, void *buf, size_t sz) in read_file() function
1905 ret = read_file(fd, offs, buf, sz); in feat_copy()