* Memory change notifications
2011-07-18 18:36 Memory change notifications Erlon Cruz
@ 2011-07-18 18:48 ` mindentropy
2011-07-18 19:43 ` mindentropy
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mindentropy @ 2011-07-18 18:48 UTC (permalink / raw)
To: kernelnewbies
>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?
^ permalink raw reply [flat|nested] 6+ messages in thread* Memory change notifications
2011-07-18 18:36 Memory change notifications Erlon Cruz
2011-07-18 18:48 ` mindentropy
@ 2011-07-18 19:43 ` mindentropy
2011-07-19 4:25 ` Vladimir Murzin
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mindentropy @ 2011-07-18 19:43 UTC (permalink / raw)
To: kernelnewbies
>I would like
>to know if is possible to get notified(in that kernel module) every time a
>process change its mapped memory.
I might have misread your question. If you are talking about mremap system
call you would have to look at nopage method.
^ permalink raw reply [flat|nested] 6+ messages in thread* Memory change notifications
2011-07-18 18:36 Memory change notifications Erlon Cruz
2011-07-18 18:48 ` mindentropy
2011-07-18 19:43 ` mindentropy
@ 2011-07-19 4:25 ` Vladimir Murzin
2011-07-19 11:36 ` Mulyadi Santosa
2011-07-24 1:54 ` Kaspter Ju
4 siblings, 0 replies; 6+ messages in thread
From: Vladimir Murzin @ 2011-07-19 4:25 UTC (permalink / raw)
To: kernelnewbies
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 at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
Hi Erlon,
I'm not sure but might be hardware watchpoints is what you need?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Memory change notifications
2011-07-18 18:36 Memory change notifications Erlon Cruz
` (2 preceding siblings ...)
2011-07-19 4:25 ` Vladimir Murzin
@ 2011-07-19 11:36 ` Mulyadi Santosa
2011-07-24 1:54 ` Kaspter Ju
4 siblings, 0 replies; 6+ messages in thread
From: Mulyadi Santosa @ 2011-07-19 11:36 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 6+ messages in thread* Memory change notifications
2011-07-18 18:36 Memory change notifications Erlon Cruz
` (3 preceding siblings ...)
2011-07-19 11:36 ` Mulyadi Santosa
@ 2011-07-24 1:54 ` Kaspter Ju
4 siblings, 0 replies; 6+ messages in thread
From: Kaspter Ju @ 2011-07-24 1:54 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 6+ messages in thread