Messages in this thread | | | Date | Tue, 21 Jul 1998 14:25:23 +0200 | Subject | Re:[PATCH] New phys_addr() syscall | From | Inaky Perez Gonzalez <> |
| |
>>>>> "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
| |