Re: [PATCH 020/117] Staging: hv: vmbus: Support the notion of id tables in vmbus_match()

From
Christoph Hellwig <hch@infradead.org>
Date
2011-07-16 02:02:56
Also in
lkml
Reply to
K. Y. Srinivasan, 2011-07-15
On Fri, Jul 15, 2011 at 10:46:08AM -0700, K. Y. Srinivasan wrote:
quoted hunk ↗ jump to hunk
+static bool is_not_null_guid(const __u8 *guid)
+{
+	int i;
+
+	for (i = 0; i < (sizeof(struct hv_vmbus_device_id)); i++)
+		if (guid[i] != 0)
+			return true;
+	return false;
+}
would be nice to add uuid_{le,be}_is_nil helpers to uuid.h.  I also
think simply using a memcpy might be more efficient than the hand-rolled
loop.
Thread (175 messages) 175 messages, 9 authors, last reply 2011-08-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help