Linux Kernel I/O C programming
I am working on a homework assignment that has to do with writing code for a ramdisk. I have most of it figured out, but I need to implement an extra feature. So what I have is a device info structure that has various fields and pointers to things, and I want to be able to access certain fields from the user space (i.e. outside the driver). This is proving to be very painful ( and impossible). My other alternative is to handle some prompts inside the device kernel code. I can print things onto my emulator, but I can't take any input, which is what I want to do. Long story short, I am wondering if there is any way to get input into the kernel. Something along the lines of fgets(), but that I can use in my device.
Thank you for any thoughts you might wish to share.