tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Help with a bug in mmap
Hello All,
I have recently been working on porting the kcov(4) feature to NetBSD.
The feature comes as a /dev module. I have been stuck for a while with the
mmap() function of the device. I have been trying to populate a buffer from
the module and then pass it to the userspace program.
The mmap function of the device is here
<https://github.com/R3x/src/blob/32806c3abfcfb5e82d1a0c69e00749ef97fdaf21/sys/dev/kcov.c#L205>
and the function populating the buffer is here
<https://github.com/R3x/src/blob/32806c3abfcfb5e82d1a0c69e00749ef97fdaf21/sys/dev/kcov.c#L86>
Home |
Main Index |
Thread Index |
Old Index