You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can now use whatever name you like for the start and end functions of a module,
420
420
and you will learn how to do this in \Cref{sec:hello_n_goodbye}.
421
421
In fact, the new method is the preferred method.
422
-
However, many people still use \cpp|init_module()| and \cpp|cleanup_module()| for their start and end functions.
422
+
The old \cpp|init_module()| and \cpp|cleanup_module()| have been deprecated for x86 systems with indirect branch tracking (IBT) enabled starting from \href{https://github.com/torvalds/linux/commit/4fab2d76}{commit 4fab2d76} in kernel 6.15, causing build failures.
423
+
However, many existing examples still use these names for their start and end functions.
423
424
424
425
Typically, \cpp|init_module()| either registers a handler for something with the kernel,
425
426
or it replaces one of the kernel functions with its own code (usually code to do something and then call the original function).
0 commit comments