Quantcast
Channel: Active questions tagged kernel-modules - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 1181

Shared memory between user module and kernel module

$
0
0

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!


Viewing all articles
Browse latest Browse all 1181

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>