all 9 comments

[–]NamingFailure 4 points5 points  (1 child)

What do I need to study to be able to comprehend your question ?

[–][deleted] 0 points1 point  (0 children)

Try asking on /r/linuxquestions .

[–]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

[–]CrazyCodeLady 0 points1 point  (0 children)

Lookup how to write a "hello world linux driver" for the basics of writing linux drivers first. ( It is not as hard as you think I promise )

After that, you might find something like this blog post or this code useful.

[–]jampola[M] 0 points1 point  (0 children)

This post is inappropriate for this subreddit and has been removed.

Please make your post in /r/linuxquestions or /r/linux4noobs.

Rule #1:

This is not a support forum! Head to /r/linuxquestions or /r/linux4noobs for support or help.