Linux module to convert virtual to physical and vice versa

virt_to_phys: Function converts kernel virtual address to physical address.
phys_to_virt: Function converts physical address to kernel virtual address.

Code:



Output:






Comments

  1. Is there any function which gives direct physical address ?

    ReplyDelete
    Replies
    1. As per my knowledge, i don't think there is such function

      Delete

Post a Comment

Popular posts from this blog

bb.utils.contains yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig

PR, PN and PV Variable in Yocto