Confusing in Address
Alexandru Juncu
alex.juncu at rosedu.org
Sat Feb 11 12:33:12 EST 2012
2012/2/11 cheng chen <basaka.chen at gmail.com>:
> Me too. good question.
> Which header may define these addresses?
>
>
> On Sat, Feb 11, 2012 at 10:52 AM, hz hanks <hankshz at gmail.com> wrote:
>>
>> Hi, all
>>
>> I'm confused with different addresses in Linux, such as virtual
>> address and hardware address. For example, which kind of address one
>> can get when using "&num" in application layer programming? How about
>> that in kernel, such as in device driver? Which kind of address one
>> can get when using "void _ _user *to" in device driver? And which kind
>> of address the kernel is working with when using "mmap"? And which
>> kind of address we are talking about when divide the memory into user
>> space and kernel space?
>>
>> It's quite tedious but thank you so much for helping me!
Both in the userpace and in the kernel space of a process, all
addresses are virtual. Inside the kernel, you _can_ use physical
address but few cases need that.
--
Alexandru Juncu
ROSEdu
http://rosedu.org
More information about the Kernelnewbies
mailing list