Search This Blog

11 May, 2014

printing hex values in linux kernel module

for printing the hex values in the kernel modules/kernel space we can use the print_hex_dump function

the format is as follows

print_hex_dump("KERN_ERROR", "Message: ", DUMP_PREFIX_OFFSET,
                            16, 2, data_buffer, length_of_buffer, 1);



No comments:

Post a Comment

tmux enabling mouse interaction

Add the below line to the ~/.tmux.conf setw -g mouse on save the file and exit from the tmux shell, you should be able to use your mouse to ...