[openib-general] ib_dma_addr_t

Michael S. Tsirkin mst at mellanox.co.il
Thu Jan 4 14:34:35 PST 2007


>  > I'd like to propose that we introduce ib_dma_addr_t.
>  > The idea is to add some type safety (via sparse checker)
>  > that we lost when all addresses were converted to u64.
> 
> How would that work?  sparse isn't going to warn about implicit casts
> to/from ib_dma_addr_t, is it?  We can't make ib_dma_addr_t a bitwise
> type, because arithmetic is allowed on bus addresses.

How about the address_space attribute?
Something like how __iomem is defined?

-- 
MST




More information about the general mailing list