Re: Confusing in Address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2012/2/11 cheng chen <basaka.chen@xxxxxxxxx>:
> Me too. good question.
> Which header may define these addresses?
>
>
> On Sat, Feb 11, 2012 at 10:52 AM, hz hanks <hankshz@xxxxxxxxx> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux