How to check memory address in Linux kernel?

I am debugging corrupted batch content inside a network driver. I want to dump the contents of a packet inside a network driver for debugging. Before that I want to check if its address is available and if it is valid inside the kernel address space. Any API available for the same as the NULL check?

+3


source to share


1 answer


I think virt_addr_valid () might come in handy. As far as I understand, this is just a validation of the kernel address space.



0


source







All Articles