Displaying 1 result from an estimated 1 matches for "gdev_node".
2008 Dec 25
0
[PATCH 2/4] dom0 linux: Add "guestdev=" boot parameter.
...= sbdf->child;
+ while (node) {
+ next = node->child;
+ kfree(node);
+ node = next;
+ }
+ /* Skip kfree(sbdf) */
+}
+
+/* Is sbdf within guestdev */
+static int pci_sbdf_in_guestdev_sub_tree(struct guestdev *gdev,
+ struct pcidev_sbdf *sbdf)
+{
+ int seg, bbn;
+ struct guestdev_node *gdev_node;
+ struct pcidev_sbdf_node *sbdf_node;
+
+ if (!gdev || !sbdf)
+ return FALSE;
+
+ /* Compare seg and bbn */
+ if (gdev->seg == INVALID_SEG ||
+ gdev->bbn == INVALID_BBN) {
+ if (acpi_pci_get_root_seg_bbn(gdev->hid,
+ gdev->uid, &seg, &bbn)) {
+ gdev->seg = seg...