This commit is contained in:
Shih-Sheng Yang 2023-09-03 13:06:13 +08:00 committed by GitHub
parent 0addb868dc
commit 34eb62045e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2087,7 +2087,7 @@ pr_info("fastpath 2\n");
If the key is enabled at runtime by calling \cpp|static_branch_enable(&fkey)|, the fastpath will be patched with an unconditional jump instruction to the slowpath code \cpp|pr_alert|, so the branch will always be taken until the key is disabled again.
The following kernel module derived from \verb|chardev.c|, demostrates how the static key works.
The following kernel module derived from \verb|chardev.c|, demonstrates how the static key works.
\samplec{examples/static_key.c}