From cccf804379e6d53b3fea722d3732e3ec704d0406 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sat, 5 Dec 2009 23:17:04 -0200 Subject: [PATCH] Init and Exit functions. --- 01.hello/01.hello.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/01.hello/01.hello.xml b/01.hello/01.hello.xml index aa0e3dc..7306db5 100644 --- a/01.hello/01.hello.xml +++ b/01.hello/01.hello.xml @@ -44,6 +44,22 @@ $ make -C /lib/modules/`uname -r`/build M=$PWD modules + +Init and Exit Functions + +We use module_init and module_exit to +declare our init and exit functions. + + + + +Init and Exit Functions + +The __init and __exit marks allow the +kernel to remove them when they are not needed, reducing memory consumption. + + + Module Tools -- 2.20.1