-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about register_keyboard_notifier #10
Comments
I have added a comment on what we are doing. You can find the function here: https://elixir.bootlin.com/linux/v3.6/source/drivers/tty/vt/keyboard.c#L149 in brief, it adds a new notifier block (which has a callback function to be called when a console keyboard event happens) to a list of such blocks. |
And the notifier_block structure is here: https://elixir.bootlin.com/linux/v3.6/source/include/linux/notifier.h#L50 |
After reading your mail I realized you are trying to figure out See https://elixir.bootlin.com/linux/v3.6/source/drivers/tty/vt/keyboard.c#L143. Now https://elixir.bootlin.com/linux/v3.6/source/include/linux/notifier.h#L103 It's a structure that initializes with an unlocked spinlock and a NULL head pointer. Once setup, when you call |
When it's the kernel, in many cases you may really have to look into the code to figure out what's going on. On practice (and not necessarily on Linux kernel code only), it becomes simpler. |
Can you please share documentation about this function? Found none on the Internet...
The text was updated successfully, but these errors were encountered: