Loading a file to KERNEL space (raspberry)

I'm trying to create a linux module and passing it a file path for it to load into a buffer. The file size is 2MB maximum (it's a floppy disk image).
Can anyone give me some direction here? example code.. something?

CONCEPT: the ideia is to emulate the MFM floppy disk protocol and by loading the file to kernel I would be gaining the performance required for the protocol emulation.
Topic archived. No new replies allowed.