lkml.org 
[lkml]   [1998]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe:[PATCH] New phys_addr() syscall
From
>>>>> "Richard" == Richard Gooch <Richard.Gooch@atnf.csiro.au> writes:

Hi

Richard> Hi, all. I've implemented a simple new system call called
Richard> phys_addr() which converts a virtual address to a physical
Richard> address.

Cool. I needed some of this for the USB Stack; I've been using
something I found at linux/drivers/char/bttv.c, as I wanted to be able
to directly do PCI read and writes to user space.

Could the interface be extended to be used from kernel-land?
It seems to be _non_ standard.

Currently I use:

static inline unsigned long uvirt_to_phys(unsigned long adr)
static inline unsigned long kvirt_to_phys(unsigned long adr)

(uvirt -> user virtual to phys)
(kvirt -> kernel virtual to phys)

Cheers!


Linux-USB! http://peloncho.fis.ucm.es/~inaky/USB.html -
-
Inaky Perez Gonzalez -- PGP pubkey fingerprint -
inaky@peloncho.fis.ucm.es -- 8E 34 3A 62 64 99 E2 44 -
http://peloncho.fis.ucm.es/~inaky -- AD 7B 30 D9 DD FF 3E 4C -
--------------------------------- -- ----------------------- -
The loneliness of the long distance runner .....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.126 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site