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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: FUJITA Tomonori <fujita.tomonori@...>, mingo@redhat.com <mingo@...>
Cc: linux-kernel@vger.kernel.org <linux-kernel@...>, Joerg Roedel <joerg.roedel@...>
Date: Tuesday, September 9, 2008 - 12:17 pm

+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, 12:06 pm)
[PATCH 1/4] add is_buffer_dma_capable helper function, FUJITA Tomonori, (Tue Sep 9, 12:06 pm)
RE: [PATCH 1/4] add is_buffer_dma_capable helper function, Luck, Tony, (Tue Sep 9, 12:17 pm)
RE: [PATCH 1/4] add is_buffer_dma_capable helper function, FUJITA Tomonori, (Tue Sep 9, 12:49 pm)