i want to open a file in user space & want to copy its contents to the kernel space module. & i wanto kno the reverse procedure too...
actually my ioctl call wud activate my module & then the module reads the file & does some work... & at last has to write the file back to the user space...
i found out that it canb done by copy_to_user & etc... functions... but have no time for experimentation now..
& how to manage memory in kernel space ... i mean to allocate buffers & manipulate as done in user space with malloc.
cud i get some code that gets this work done... coz im in areal hurry, so if i get some code... i wud b indebted... plz