The question is with regard to the printk formats. The documentation that I’m reading is located here Here is an excerpt that I’m asking about: What does [p] in %pa[p] stand for? What does it mean? Answer The p in [p] stands for phys_addr_t when used in %pap. This is analogous to the d in %pad stands for dma_addr_t, as
Tag: device-driver
Why my IOCTL call work with copy_from_user but not with get_user?
I am writing a simple driver. Here I’m learning ioctl calls, they work perfect in copy_to_user and copy_from_user part but not in get_user and put_user part. It works if I send some data by those functions; problem is when I have to just pass an integer or character value: in above part it works fine for the copy to user
what is the difference between Linux drivers and Android driver
As android kernel is a hacked version of linux kernel.. So the way we write drivers for linux would that work in android or some modifications are to be done .? Answer There are some API differences between Android and Linux kernel drivers code, any drivers written for Android hardware platforms can not get merged into the main kernel tree