Skip to content

Instantly share code, notes, and snippets.

@klange
Created March 19, 2014 03:10
Show Gist options
  • Save klange/9634809 to your computer and use it in GitHub Desktop.
Save klange/9634809 to your computer and use it in GitHub Desktop.
toaru-0.6.1-dev /# log on
toaru-0.6.1-dev /# mod mod/testb.ko
Okay, going to load a module!
[0000000006.15:kernel/sys/module.c:262] NOTICE: Attempting to load kernel module: mod/testb.ko
[0000000006.15:kernel/sys/module.c:84] ERROR: test - not loaded
[0000000006.15:kernel/sys/module.c:270] ERROR: Failed to load module due to unsatisfied dependency.
Something went wrong, failed to load module: mod/testb.ko
toaru-0.6.1-dev 1 /# mod mod/test.ko
Okay, going to load a module!
[0000000024.87:kernel/sys/module.c:262] NOTICE: Attempting to load kernel module: mod/test.ko
[0000000024.87:modules/test.c:24] NOTICE: I am a string from the kernel.
[0000000024.87:modules/test.c:14] WARNING: I am an exported function in the module.
[0000000024.87:modules/test.c:26] NOTICE: I am a char[] in the module.
[0000000024.87:modules/test.c:27] NOTICE: I am a char * in the module.
[0000000024.87:modules/test.c:31] NOTICE: Inserting into hashmap...
[0000000024.87:modules/test.c:34] NOTICE: getting value: cake
[0000000024.87:kernel/sys/module.c:224] NOTICE: Finished loading module test
Loaded test at 0x016f8000
toaru-0.6.1-dev /# mod mod/testb.ko
Okay, going to load a module!
[0000000027.78:kernel/sys/module.c:262] NOTICE: Attempting to load kernel module: mod/testb.ko
[0000000027.78:modules/testb.c:9] NOTICE: Calling a_function from other module.
[0000000027.78:modules/test.c:14] WARNING: I am an exported function in the module.
[0000000027.78:kernel/sys/module.c:224] NOTICE: Finished loading module testb
Loaded testb at 0x016fb000
toaru-0.6.1-dev /# modules
ps2kbd at 0x0016e000 {.init=0x0016e050, .fini=0x0016e040}
serial at 0x00159000 {.init=0x00159290, .fini=0x00159060}
test at 0x016f8000 {.init=0x016f8090, .fini=0x016f8040} Deps: debugshell
random at 0x00158000 {.init=0x00158080, .fini=0x00158070}
procfs at 0x0015b000 {.init=0x0015b060, .fini=0x0015b050}
ext2 at 0x00162000 {.init=0x00162320, .fini=0x00162060}
debugshell at 0x00166000 {.init=0x00166090, .fini=0x00166060} Deps: serial
ata at 0x00160000 {.init=0x001609e0, .fini=0x00160070}
ps2mouse at 0x0016c000 {.init=0x0016c1e0, .fini=0x0016c040}
testb at 0x016fb000 {.init=0x016fb070, .fini=0x016fb040} Deps: test
zero at 0x00157000 {.init=0x001570f0, .fini=0x001570b0}
tmpfs at 0x0015d000 {.init=0x0015dd80, .fini=0x0015d060}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment