I'm kind of new to kernel development.
I have a custom kernel module that needs to "communicate" some tcp network parameters to a user-level module (a python script). I don't want to rely on netlink communication library (it introduces overhead in communication between modules), so I thought about a shared memory between the kernel and the user module. Both need to write and read from it, so they can also be two separate memory spaces.
I read something about mmap and shmem, but I'd like to know what's the best choice and how to use it from someone who has more experience.
Thanks!