Re: request_mem_region

Daniel Baluta <[email protected]>
Newsgroups gmane.linux.newbie,gmane.linux.kernel.kernelnewbies
Message-ID <[email protected]>
Hi,
On Tue, Oct 20, 2009 at 7:25 PM, Rick Brown <[email protected]> wrote:
> Hi,
>
> I'm trying to write a simple driver using some registers of my hardware.
>
> Is a call to request_mem_region() advisory ("recommended") or
> compulsory before I ioremap the memory?

I think it is "compulsory" recommened.

>
> In other words, if I don't use request_mem_region() before I start
> using the memory; is my driver BOUND to fail, or it MAY fail?

You need to call request_mem_region in order to verify that no other
device is using the same address resource.

So your driver might FAIL if the address is already reserved for another device.

thanks,
Daniel.
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.