why should we use requset_mem_region()before using ioremap()?
2013-08-02 10:39
489 查看
request_mem_regionallows
to tell the kernel that your driver is going to use this range of I/O addresses, which will prevent other drivers to make an overlapping call to
request_mem_region.
This mechanism does not do any kind of mapping, it's a pure reservation mechanism, which relies on the fact that all kernel device drivers must be nice, and they must call
request_mem_region,
check the return value, and behave properly in case of error.
So it is completely logical that your code works without
request_mem_region,
it's just that it doesn't comply with the kernel coding rules.
相关文章推荐
- 【Zookeeper】——Why should we use zookeeper?
- Why we should use closures in python
- NoSQL Databases, why we should use, and which one we should choose
- 我们为什么用卷积? Why should we use convolution?
- request_mem_region和ioremap
- Why you should learn the API before MFC
- 10 Reasons Why You Should Use AngularJS(中文翻译)
- Why Do We Use Fiber Optic Switch?
- Why we are using Spring framework?
- Why you should use async tasks in .NET 4.5 and Entity Framework 6
- What is a serialVersionUID and why should I use it?
- request_mem_region,ioremap 和phys_to_virt()
- Why you should learn the API before MFC (转自国外的网站)
- composer install 时,提示:Package yiisoft/yii2-codeception is abandoned, you should avoid using it. Use codeception/codeception instead.的解决
- request_mem_region,ioremap 和phys_to_virt()
- 内核request_mem_region 和 ioremap的理解
- WHY WE SHOULD BUILD SOFTWARE LIKE WE BUILD HOUSES
- Why you should use talloc for your next project
- Why Do We Use Fiber Optic Switch?
- request_mem_region,ioremap 和phys_to_virt()