search for: gdev_org

Displaying 1 result from an estimated 1 matches for "gdev_org".

2008 Dec 25
0
[PATCH 2/4] dom0 linux: Add "guestdev=" boot parameter.
...+ if (gdev) + pci_free_guestdev(gdev); + printk(KERN_ERR "PCI: Failed to allocate memory.\n"); + return NULL; +} + +/* Make guestdev from path strings */ +static int pci_make_guestdev(char *path_str) +{ + char hid[HID_LEN + 1], uid[UID_LEN + 1]; + char *sp, *ep; + struct guestdev *gdev, *gdev_org; + struct guestdev_node *node, *node_tmp; + int dev, func, ret_val; + + ret_val = 0; + gdev = gdev_org = NULL; + sp = path_str; + /* Look for end of hid:uid''-'' */ + ep = strchr(sp, ''-''); + /* Only hid, uid. (No dev, func) */ + if (!ep) + goto format_err_end; + +...