본문 바로가기

Programming/Linux_Kernel

virtual address 와 physical address 를 서로 변환하기


static inline unsigned long virt_to_phys(volatile void * address)
{
         return __pa(address);
}

static inline void * phys_to_virt(unsigned long address)
{
         return __va(address);
}