What is the use of __iomem in linux while writing device drivers?
Lots of type casts are going to just “work well”. However, this is not very strict. Nothing stops you from casting a u32 to a u32 * and dereference it, but this is not following the kernel API and is prone to errors. __iomem is a cookie used by Sparse, a tool used to find … Read more