Dropping mbuf from all paths and using posix shmem
This is not a priority to drop mbuf from everything. It works in kernel space.
If/when we come to the point of dropping mbuf, here are some notes.
Using POSIX shmem, does the following things:
- open a file - shm_open
- mmap
- use memory
This just maps to opening a file in /dev/shm (on linux) and them mmapping it.
We could work this out in the kernel side of things if we looked around enough.
Some notes to help:
linux/fs.h
- filp_open(char* filename, int mode) -> defines a way to open a file in kernel space and get a struct file*
- the file* then has a file_operations object associated with it that has a mmap method/function.
- If we worked out the mmap call and getting the memory arguments to it properly we could do the same thing that user space is, allowing us to create the shared memory window in a mode that is compatible with posix shared memory.