/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/ |
H A D | ri_init.c | 1403 mk_drv_inst(di_node_t node, char drv_inst[], char *devfs_path) argument 1410 devfs_path)); 1416 devfs_path)); 1440 char *devfs_path; local 1451 ((devfs_path = di_devfs_path(node)) != NULL)) { 1455 devfs_path); 1464 /* Free the devfs_path */ 1465 di_devfs_path_free(devfs_path); 1499 char *devfs_path; local 1537 devfs_path [all...] |
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 163 char *c_num = NULL, *devfs_path, *mn; local 172 if ((devfs_path = di_devfs_path(node)) == NULL) { 175 (void) strcpy(path, devfs_path); 178 di_devfs_path_free(devfs_path);
|
H A D | devfsadm.c | 2823 char *devfs_path = NULL; local 2860 (void) resolve_link(devlink, NULL, NULL, &devfs_path, 0); 2865 if (devfs_path) { 2872 (void) strcpy(pwd_buf, devfs_path); 2875 free(devfs_path); 2908 free(devfs_path); 2912 free(devfs_path); 4470 devfsadm_read_link(di_node_t anynode, char *link, char **devfs_path) argument 4475 *devfs_path = NULL; 4487 *devfs_path 4556 resolve_link(char *devpath, char **content_p, int *type_p, char **devfs_path, int dangle) argument 4840 devfsadm_enumerate_int(char *devfs_path, int index, char **buf, devfsadm_enumerate_t rules[], int nrules) argument 4848 disk_enumerate_int(char *devfs_path, int index, char **buf, devfsadm_enumerate_t rules[], int nrules) argument 4860 devfsadm_enumerate_int_start(char *devfs_path, int index, char **buf, devfsadm_enumerate_t rules[], int nrules, char *start) argument 4872 devfsadm_enumerate_char(char *devfs_path, int index, char **buf, devfsadm_enumerate_t rules[], int nrules) argument 4884 devfsadm_enumerate_char_start(char *devfs_path, int index, char **buf, devfsadm_enumerate_t rules[], int nrules, char *start) argument 4901 find_enum_id(devfsadm_enumerate_t rules[], int nrules, char *devfs_path, int index, char *min, int type, char **buf, int multiple) argument [all...] |
H A D | devfsadm.h | 223 int devfsadm_enumerate_int(char *devfs_path, int index, char **buf, 225 int devfsadm_enumerate_char(char *devfs_path, int index, char **buf, 236 int disk_enumerate_int(char *devfs_path, int index, char **buf, 241 int devfsadm_enumerate_char_start(char *devfs_path, int index, 243 int devfsadm_read_link(di_node_t node, char *link, char **devfs_path);
|
H A D | devfsadm_impl.h | 360 static int devfsadm_enumerate_int_start(char *devfs_path, 409 char **devfs_path, int dangle); 417 char *devfs_path, int index, char *min, int type, char **buf, int multiple); 464 static char *alloc_cmp_str(const char *devfs_path, devfsadm_enumerate_t *dep);
|
H A D | port_link.c | 370 portcmp(char *devfs_path, char *phys_path) argument 377 p1 = strrchr(devfs_path, ':'); 395 rv = strcmp(devfs_path, phys_path); 420 char *devfs_path; local 426 if (devfsadm_read_link(node, port, &devfs_path) == DEVFSADM_SUCCESS && 427 portcmp(devfs_path, phys_path) != 0) { 428 free(devfs_path); 432 free(devfs_path); 435 if (devfsadm_read_link(node, port, &devfs_path) == DEVFSADM_SUCCESS && 436 portcmp(devfs_path, phys_pat [all...] |
/illumos-gate/usr/src/cmd/hal/addons/storage/ |
H A D | addon-storage.c | 41 static char *devfs_path; variable 120 if (strncmp (path, devfs_path, len) != 0) 335 if ((devfs_path = getenv ("HAL_PROP_SOLARIS_DEVFS_PATH")) == NULL)
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo.c | 86 devinfo_set_default_properties (HalDevice *d, HalDevice *parent, di_node_t node, char *devfs_path) argument 100 devfs_path, local 111 hal_device_property_set_string (d, "solaris.devfs_path", devfs_path); 153 char *devfs_path; local 158 devfs_path = di_devfs_path (node); 165 d = handler->add (parent, node, devfs_path, device_type); 168 di_devfs_path_free(devfs_path); 175 devinfo_hotplug_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler, int action, int front) argument 183 strlcpy (hotplug_event->un.devfs.devfs_path, devfs_pat 191 devinfo_add_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler) argument 197 devinfo_add_enqueue_at_front(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler) argument 203 devinfo_remove_enqueue(gchar *devfs_path, DevinfoDevHandler *handler) argument 335 devinfo_remove(gchar *devfs_path) argument 342 devinfo_remove_branch(gchar *devfs_path, HalDevice *d) argument 390 hotplug_event_begin_remove_devinfo(HalDevice *d, gchar *devfs_path, void *end_token) argument [all...] |
H A D | devinfo.h | 25 HalDevice *(*add) (HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 28 void (*remove) (char *devfs_path); 56 void devinfo_set_default_properties (HalDevice *d, HalDevice *parent, di_node_t node, char *devfs_path); 65 void hotplug_event_begin_remove_devinfo (HalDevice *d, gchar *devfs_path, void *end_token); 66 void devinfo_hotplug_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler, int action, int front); 67 void devinfo_add_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler); 68 void devinfo_add_enqueue_at_front(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler); 69 void devinfo_remove_enqueue(gchar *devfs_path, DevinfoDevHandler *handler);
|
H A D | devinfo_acpi.c | 39 char *devfs_path, char *device_type); 62 devinfo_acpi_add(HalDevice *parent, di_node_t node, char *devfs_path, argument 90 devinfo_set_default_properties(d, parent, node, devfs_path); 91 devinfo_add_enqueue(d, devfs_path, &devinfo_acpi_handler); 108 "solaris.devfs_path", minor_path) == NULL) { 131 devinfo_power_button_add(HalDevice *parent, di_node_t node, char *devfs_path, argument 144 devinfo_set_default_properties(d, parent, node, devfs_path); 151 devinfo_add_enqueue(d, devfs_path, &devinfo_power_button_handler);
|
H A D | devinfo_acpi.h | 32 char *devfs_path, char *device_type, gboolean rescan, HalDevice *battery_d);
|
H A D | devinfo_cpu.c | 45 devinfo_cpu_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 146 * If cpu driver is not installed, then devfs_path returned by 148 * Since HAL stores the devices in its tree based on the devfs_path, 149 * To make it unique, will be concatenating devfs_path with cpu_id 153 devfs_path, cpu_id); 155 snprintf (cpu_devfs_path, HAL_PATH_MAX, "%s", devfs_path); 170 hal_device_property_set_string (d, "solaris.devfs_path",
|
H A D | devinfo_ieee1394.c | 36 HalDevice *devinfo_ieee1394_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 37 static HalDevice *devinfo_scsa1394_add(HalDevice *d, di_node_t node, gchar *devfs_path); 49 devinfo_ieee1394_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 69 d = devinfo_scsa1394_add (parent, node, devfs_path); 76 devinfo_scsa1394_add(HalDevice *parent, di_node_t node, gchar *devfs_path) argument 82 devinfo_set_default_properties (d, parent, node, devfs_path); 86 devinfo_add_enqueue (d, devfs_path, &devinfo_ieee1394_handler);
|
H A D | devinfo_misc.c | 73 devinfo_computer_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 78 if (strcmp (devfs_path, "/") != 0) { 88 hal_device_property_set_string (d, "solaris.devfs_path", devfs_path); 109 devinfo_add_enqueue (d, devfs_path, &devinfo_computer_handler); 119 hal_device_property_set_string (local_d, "solaris.devfs_path", "/local"); 127 devinfo_keyboard_add(HalDevice *parent, di_node_t node, char *devfs_path, argument 139 devinfo_set_default_properties(d, parent, node, devfs_path); 158 devinfo_add_enqueue(d, devfs_path, &devinfo_keyboard_handler); 164 devinfo_mouse_add(HalDevice *parent, di_node_t node, char *devfs_path, argument 199 devinfo_default_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument [all...] |
H A D | devinfo_pci.c | 31 HalDevice *devinfo_pci_add (HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 42 HalDevice *devinfo_pci_add (HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 63 devinfo_set_default_properties (d, parent, node, devfs_path); 118 devinfo_add_enqueue (d, devfs_path, &devinfo_pci_handler);
|
H A D | devinfo_storage.c | 58 HalDevice *devinfo_ide_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 59 static HalDevice *devinfo_ide_host_add(HalDevice *parent, di_node_t node, char *devfs_path); 60 static HalDevice *devinfo_ide_device_add(HalDevice *parent, di_node_t node, char *devfs_path); 61 static HalDevice *devinfo_ide_storage_add(HalDevice *parent, di_node_t node, char *devfs_path); 62 HalDevice *devinfo_scsi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 63 static HalDevice *devinfo_scsi_storage_add(HalDevice *parent, di_node_t node, char *devfs_path); 64 HalDevice *devinfo_blkdev_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 65 static HalDevice *devinfo_blkdev_storage_add(HalDevice *parent, di_node_t node, char *devfs_path); 66 HalDevice *devinfo_floppy_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type); 68 static HalDevice *devinfo_lofi_add(HalDevice *parent, di_node_t node, char *devfs_path, cha 149 devinfo_ide_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 166 devinfo_ide_host_add(HalDevice *parent, di_node_t node, char *devfs_path) argument 183 devinfo_ide_device_add(HalDevice *parent, di_node_t node, char *devfs_path) argument 201 devinfo_ide_storage_add(HalDevice *parent, di_node_t node, char *devfs_path) argument 247 devinfo_scsi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 282 devinfo_scsi_storage_add(HalDevice *parent, di_node_t node, char *devfs_path) argument 372 devinfo_blkdev_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 401 devinfo_blkdev_storage_add(HalDevice *parent, di_node_t node, char *devfs_path) argument 440 devinfo_floppy_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 526 char *devfs_path; local 550 const char *devfs_path; local 589 devinfo_lofi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 595 devinfo_lofi_add_major(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type, gboolean rescan, HalDevice *lofi_d) argument 724 const char *devfs_path; local 800 devinfo_storage_minors(HalDevice *parent, di_node_t node, gchar *devfs_path, gboolean rescan) argument 983 char *devfs_path = m->devpath; local 1262 char *devfs_path = NULL; local 1608 devinfo_volume_hotplug_begin_remove(HalDevice *d, char *devfs_path, void *end_token) argument [all...] |
H A D | devinfo_storage.h | 24 HalDevice *devinfo_lofi_add_major(HalDevice *parent, di_node_t node, char *devfs_path, 28 void devinfo_volume_hotplug_begin_remove (HalDevice *d, char *devfs_path, void *end_token);
|
H A D | devinfo_usb.c | 37 static HalDevice *devinfo_usb_if_add(HalDevice *d, di_node_t node, gchar *devfs_path, 45 static void set_usb_properties(HalDevice *d, di_node_t node, gchar *devfs_path, char *driver_name); 96 get_usb_devlink(char *devfs_path, const char *dir_name) argument 111 (strstr(lpath, devfs_path) != NULL)) { 124 devinfo_usb_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 145 devinfo_set_default_properties (d, parent, node, devfs_path); 173 set_usb_properties (d, node, devfs_path, driver_name); 177 if (hdl = di_devlink_init (devfs_path, DI_MAKE_LINK)) { 182 devinfo_add_enqueue (d, devfs_path, &devinfo_usb_handler); 191 devfs_path, 248 set_usb_properties(HalDevice *d, di_node_t node, gchar *devfs_path, char *driver_name) argument 370 devinfo_usb_if_add(HalDevice *parent, di_node_t node, gchar *devfs_path, gchar *if_devfs_path, int ifnum) argument [all...] |
H A D | devinfo_usb.h | 23 HalDevice *devinfo_usb_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
|
H A D | hotplug.c | 66 HAL_ERROR (("devpath %s already present in store, ignore event", hotplug_event->un.devfs.devfs_path)); 80 if (strcmp(hotplug_event->un.devfs.devfs_path, "/") != 0) { 81 HAL_ERROR (("Parent is NULL devfs_path=%s parent_udi=%s", hotplug_event->un.devfs.devfs_path, parent_udi ? parent_udi : "<null>")); 116 HAL_ERROR (("devpath %s not present in store, ignore event", hotplug_event->un.devfs.devfs_path)); 123 hotplug_event->un.devfs.devfs_path, 132 HAL_INFO (("hotplug_event_begin_devfs: %s", hotplug_event->un.devfs.devfs_path)); 134 "solaris.devfs_path", 135 hotplug_event->un.devfs.devfs_path);
|
H A D | hotplug.h | 45 char devfs_path[HAL_PATH_MAX]; member in struct:__anon628::__anon629::__anon630
|
H A D | osspec.c | 90 * @param devfs_path Path into devfs, e.g. /pci@0,0/pci1025,57@10,2/storage@1 94 hal_util_find_closest_ancestor (const gchar *devfs_path, gchar **ancestor_devfs_path, gchar **hotplug_devfs_path) argument 102 strncpy (buf, devfs_path, sizeof (buf)); 113 "solaris.devfs_path",
|
H A D | osspec_solaris.h | 20 HalDevice *hal_util_find_closest_ancestor (const gchar *devfs_path, gchar **ancestor_devfs_path, gchar **hotplug_devfs_path);
|
H A D | sysevent.c | 325 sysevent_dev_add(gchar *devfs_path, gchar *name) argument 330 HAL_INFO (("dev_add: %s %s", name, devfs_path)); 332 parent = hal_util_find_closest_ancestor (devfs_path, &parent_devfs_path, &hotplug_devfs_path); 349 sysevent_dev_remove(gchar *devfs_path, gchar *name) argument 351 HAL_INFO (("dev_remove: %s %s", name, devfs_path)); 353 devinfo_remove_branch (devfs_path, NULL); 358 sysevent_dev_branch(gchar *devfs_path) argument 360 HAL_INFO (("branch_remove: %s", devfs_path)); 362 devinfo_remove_branch (devfs_path, NULL); 367 sysevent_lofi_add(gchar *devfs_path, gcha argument 412 lookup_parent(char *devfs_path) argument 444 sysevent_devfs_add(gchar *devfs_path) argument 586 char *devfs_path; local [all...] |
/illumos-gate/usr/src/cmd/hal/probing/acpi/ |
H A D | probe-acpi.c | 38 char *devfs_path; local 44 if ((devfs_path = getenv("HAL_PROP_SOLARIS_DEVFS_PATH")) == NULL) 46 strlcat(device_file, devfs_path, HAL_PATH_MAX);
|