[Gllug] Writing my own system call

Alain Williams addw at phcomp.co.uk
Fri Jun 17 10:32:54 UTC 2011


On Wed, Jun 15, 2011 at 11:49:26AM +0100, Adrian McMenamin wrote:
> I need to know the physical address of memory allocated from the heap in
> user space (this is for research, not because I am suggesting this is a
> sensible thing for anyone in the real world to be able to do) - I am
> researching/confirming phases of memory locality in the kernel.
> 
> As far as I can see the only way I will be able to do this is to write my
> own system call handle the return from __pa().
> 
> But, just to check - anyone know of a simpler way?

How about something new in /proc/self/ ?

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>
--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list