Skip to content

Commit

Permalink
Fix #10: comment on register_keyboard_notifier()
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Feb 25, 2018
1 parent c3d37b1 commit 0b57776
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions keysniffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ static int __init keysniffer_init(void)
return -ENOENT;
}

/*
* Add to the list of console keyboard event
* notifiers so the callback keysniffer_cb is
* called when an event occurs.
*/
register_keyboard_notifier(&keysniffer_blk);
return 0;
}
Expand Down

0 comments on commit 0b57776

Please sign in to comment.