Memory change notifications
Hi all, I have a device driver that implements a mmap in a char device. I would like to know if is possible to get notified(in that kernel module) every time a process change its mapped memory. Does anyone know if so? Regards, Erlon
Hi all,
I have a device driver that implements a mmap in a char device. I would like to know if is possible to get notified(in that kernel module) every time a process change its mapped memory. Does anyone know if so?
Regards, Erlon
You would come to know from the mmap file operation right?
On Mon, Jul 18, 2011 at 10:36 PM, Erlon Cruz <sombrafam@gmail.com> wrote:
Hi all,
I have a device driver that implements a mmap in a char device. I would like to know if is possible to get notified(in that kernel module) every time a process change its mapped memory. Does anyone know if so? Regards, Erlon _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Erlon, I'm not sure but might be hardware watchpoints is what you need?
Hi... On Tue, Jul 19, 2011 at 01:36, Erlon Cruz <sombrafam@gmail.com> wrote:
Hi all,
I have a device driver that implements a mmap in a char device. I would like to know if is possible to get notified(in that kernel module) every time a process change its mapped memory. Does anyone know if so?
hm, IMHO no, it doesn't know....unless your device send somekind of "feedback" everytime it gets read. Or, I know it's dirty....mark the related pages as read-only and intercept the fault? (would be not just dirty, but awful I think...) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
Hi, On Tue, Jul 19, 2011 at 2:36 AM, Erlon Cruz <sombrafam@gmail.com> wrote:
Hi all,
I have a device driver that implements a mmap in a char device. I would like to know if is possible to get notified(in that kernel module) every time a process change its mapped memory. Does anyone know if so?
Maybe Deferred IO can help you. http://lwn.net/Articles/259210/ http://lwn.net/Articles/223751/ -- Kaspter Ju
participants (5)
-
Erlon Cruz -
Kaspter Ju -
mindentropy -
Mulyadi Santosa -
Vladimir Murzin