I am looking for a mechanism to implement shared objects between kernel and userspace. Useless to say the type but it may probably be char *
or char obj[array_size]
or void *
.
The functionality should enable both the userspace program and kernel to synchronize data in the object. And also need a mechanism in the kernel to alert the userspace program if data is just written to the object in the kernel in a non-blocking way.
I know it seems more like a character device/ or block device driver function but I am working on an embedded system that requires data being shared between userspace and device. I don't know much about the available userspace API for the device's read/write so this way need arises. But I am looking for something like alerting userspace application in ISR or interrupt handler.
I tried finding it on the internet. But I could not get any relevant search results
This is the result of a google search. which totally not what I search for