RE: [PATCH 1/4] add is_buffer_dma_capable helper function

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Luck, Tony
Date: Tuesday, September 9, 2008 - 9:17 am

+static inline int is_buffer_dma_capable(u64 mask, dma_addr_t addr, size_t size)
+{
+       return addr + size <= mask;
+}

Do we care about wrap-around (e.g. addr=0xffffffffffffffff size=2)?

-Tony
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] add a helper function, is_buffer_dma_capable(), FUJITA Tomonori, (Tue Sep 9, 9:06 am)
[PATCH 1/4] add is_buffer_dma_capable helper function, FUJITA Tomonori, (Tue Sep 9, 9:06 am)
RE: [PATCH 1/4] add is_buffer_dma_capable helper function, Luck, Tony, (Tue Sep 9, 9:17 am)
RE: [PATCH 1/4] add is_buffer_dma_capable helper function, FUJITA Tomonori, (Tue Sep 9, 9:49 am)