Category "linux-kernel"

simple_read_from_buffer/simple_write_to_buffer vs. copy_to_user/copy_from_user

I recently wrote a module implementing these functions. What is the difference between the two? From my understanding, the copy_..._user functions are more sec

Linux Kernel Module - Create Directory

I've got a problem about creating a directory within a linux kernel module. What I want: Creating a directory within a kernel module. Here is my actual code:

wait_for_completion for submit_bio in make_request not returning

I am writing a custom block driver in the Linux kernel and in my make_request routine, on writes I need to read the data of the bio's specified sector (from the

why struct cdev has kobject member?

It's strange that struct cdev has struct kobject member, do any body knows the reason?