Cijay
Cijay

Reputation: 51

Replacing `chardev` by `mmap`

I am looking for a way to synchronize a kernel driver and some user-land code (without any copy_to_user or polling on a mmap)

More explanation:

My user side code read some data in a shared mmap, but it needs to know when the data are ready from the driver I already try to use signals to schedule everything but performances are even lower than using a regular char device (with a copy_to user)

(Working on a 4.1.15 kernel)

Any idea ?

[EDIT] I trying to do it with msync now

Upvotes: 1

Views: 90

Answers (0)

Related Questions