Lines Matching defs:path
53 static struct cam_device *cam_real_open_device(const char *path, int flags,
72 * Malloc a CCB, zero out the header and set its path, target and lun ids.
100 * Take a device name or path passed in by the user, and attempt to figure
110 * Input parameters: device name/path, length of devname string
115 cam_get_device(const char *path, char *dev_name, int devnamelen, int *unit)
124 if (path == NULL) {
131 * We can be rather destructive to the path string. Make a copy of
134 newpath = (char *)strdup(path);
249 cam_open_device(const char *path, int flags)
258 if (cam_get_device(path, dev_name, sizeof(dev_name), &unit) == -1)
261 return(cam_lookup_pass(dev_name, unit, flags, path, NULL));
404 cam_open_pass(const char *path, int flags, struct cam_device *device)
406 return(cam_real_open_device(path, flags, device, path, NULL, 0));
489 * Open a given device. The path argument isn't strictly necessary, but it
493 cam_real_open_device(const char *path, int flags, struct cam_device *device,
518 * If the user passed in a path, save it for him.
537 if ((fd = open(path, flags)) < 0) {
540 "%s: %s", func_name, path, func_name,
689 snprintf(str, len, "No path");