Machine-translated by Google. Questions are authored in English.
Top

Discussion

The function that maps a device's physical register block into kernel virtual address space is

  • A.kmalloc
  • B.copy_to_user
  • C.request_irq
  • D.ioremap

Answer: D

The kernel runs with virtual addresses, so a physical peripheral address must be mapped before it can be dereferenced, and the mapping is marked uncached so accesses reach the device. Dereferencing the physical address directly gives a fault.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.