Displaying 1 result from an estimated 1 matches for "h12v".
Did you mean:
12v
2009 Aug 03
2
[PATCH] New commands to list devices by UUID and label
.../* device */
+ char *dname; /* d_dname entry (ie. UUID or label) */
+};
+
+static size_t
+hasher1 (const void *h1v, size_t table_size)
+{
+ const struct h1 *h1 = h1v;
+
+ return (unsigned) h1->dev % table_size;
+}
+
+static bool
+comparator1 (const void *h11v, const void *h12v)
+{
+ const struct h1 *h11 = h11v;
+ const struct h1 *h12 = h12v;
+
+ return h11->dev == h12->dev;
+}
+
+static void
+freer1 (void *h1v)
+{
+ struct h1 *h1 = h1v;
+
+ free (h1->dname);
+ free (h1);
+}
+
+/* Note that d->d_name can contain \x<X><X> sequences which
+ * w...