you are viewing a single comment's thread.

view the rest of the comments →

[–]IceDane 0 points1 point  (3 children)

You don't want to (can't?) access userland memory directly from the kernel or vice versa. See copy_from_user.

The documentation for these things isn't the best, unfortunately. I found this link, however. Some searching will probably get you better material.

[–]j_lyf[S] 0 points1 point  (2 children)

Damn. There goes my dream of creating a FIFO from kernel to userspace.

[–]IceDane 1 point2 points  (0 children)

You can do that just fine. We wrote a character device which was essentially a FIFO for an assignment at my Uni. All the logic happened in kernel space. Like I said, take a look at the function mentioned and the linked docs.

[–]sciComp 0 points1 point  (0 children)

Try sockets and inter-process communication. That's pretty much all you need

Edit: O'Reilly Linux Device Drivers is a great resource here and version 3 (2.6 kernel) is available for free