On Thu, 08 Jan 2015 18:09:19 +0900, manty kuma said:

> Suppose, I have a kernel virtual address. Can I know which is the process
> that last used this address?

In general, no.

First off, there's no good definition of "used" - if an address is pointing
to (for instance) the inode for /dev/null, what does "used" mean?  And
more importantly, there's no hardware support for telling what kernel routines
accessed a given address (unless you want to use kgdb-ish techniques for
trapping on memory access - which gets *painful* if you have more than a
few dozen points of interest).

Second, it's quite possible that the most recent access was from a non-process
context like a hardIRQ or something.

What problem are you trying to solve here?

Attachment: pgpNGuljzzm_Q.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to