mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
mmap gets called, now lets make it actually work
This commit is contained in:
@@ -16,6 +16,7 @@ int main(int argc, char **argv)
|
||||
printf("Usage: %s <mmap_file>\n", argv[0]);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
printf("open pathname = %s\n", argv[1]);
|
||||
fd = open(argv[1], O_RDWR | O_SYNC);
|
||||
if (fd < 0) {
|
||||
perror("open");
|
||||
|
||||
Reference in New Issue
Block a user