Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 3 of 3) sorted by relevance

/linux-tools/drivers/mremap/module/
H A Dremap.c40 FILE *mem = fopen(fb, "rb"); in main() local
41 if (mem==NULL) { in main()
51 fseek(mem, start, SEEK_SET); in main()
53 n = fwrite(&magic, 1, sizeof(magic), mem); in main()
56 fread(&v, 1, sizeof(v), mem); in main()
57 fclose(mem); mem=NULL; in main()
63 mem = fopen(fb, "rb"); in main()
64 fseek(mem, nstart, SEEK_SET); in main()
66 n = fread(&vv, 1, sizeof(vv), mem); in main()
69 n = fread(&vv, 1, sizeof(vv), mem); in main()
[all …]
/linux-tools/drivers/mremap/
H A DREADME.md18 * /proc/[pid]/maps ---- mem layout
19 * /proc/[pid]/mem ---- mem content
H A Dextract.cpp97 int map_copy(FILE* out, FILE* mem, unsigned long long start, unsigned long long size) { in map_copy() argument
100 r = fseek(mem, start, SEEK_SET); in map_copy()
103 n = fread(ibuf, 1, sizeof(ibuf), mem); if (n==0) { in map_copy()