Accessing physical memory from kernel module

Jul 23, 2003 1 Replies

Hi



I am working with an Arm. It has several Chip Select Lines. I am working on a kernel module, using RTAI.



From User Space I can use open("/dev/mem", O_RDWR | O_SYNC) and mmap to access the memory for the CS Lines.



How can I do that in kernel Space?



Thank Frank benoit at tionex de


Ok, in comp.os.linux.development.system

#From: André David ( snipped-for-privacy@cern.ch) #Message 2 in thread #Subject: Re: Physical memory & hardware access #Newsgroups: comp.os.linux.development.system #Date: 2001-04-19 03:12:07 PST

I found the answer:

ptr = ioremap( physaddr, length );

Frank

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required