diff options
author | Alexey Dobriyan <adobriyan@sw.ru> | 2007-10-17 02:26:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 11:42:46 -0400 |
commit | e4dc1b14d8dc57c3975bf69740e4f5cda6bfba09 (patch) | |
tree | 084771b19ecb4335c31cdd91093f7a02b7861e69 /include | |
parent | deba0f49b9345f885a53a077623a68cef89c01d5 (diff) |
Use list_head in binfmt handling
Switch single-linked binfmt formats list to usual list_head's. This leads
to one-liners in register_binfmt() and unregister_binfmt(). The downside
is one pointer more in struct linux_binfmt. This is not a problem, since
the set of registered binfmts on typical box is very small -- (ELF +
something distro enabled for you).
Test-booted, played with executable .txt files, modprobe/rmmod binfmt_misc.
Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/binfmts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h index 91c8c07fe8b7..6b834dcd20b0 100644 --- a/include/linux/binfmts.h +++ b/include/linux/binfmts.h | |||
@@ -63,7 +63,7 @@ struct linux_binprm{ | |||
63 | * linux accepts. | 63 | * linux accepts. |
64 | */ | 64 | */ |
65 | struct linux_binfmt { | 65 | struct linux_binfmt { |
66 | struct linux_binfmt * next; | 66 | struct list_head lh; |
67 | struct module *module; | 67 | struct module *module; |
68 | int (*load_binary)(struct linux_binprm *, struct pt_regs * regs); | 68 | int (*load_binary)(struct linux_binprm *, struct pt_regs * regs); |
69 | int (*load_shlib)(struct file *); | 69 | int (*load_shlib)(struct file *); |