Home
last modified time | relevance | path

Searched refs:devfs_path (Results 1 – 25 of 63) sorted by relevance

123

/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo.c86 devinfo_set_default_properties (HalDevice *d, HalDevice *parent, di_node_t node, char *devfs_path) in devinfo_set_default_properties() argument
100 devfs_path, in devinfo_set_default_properties()
111 hal_device_property_set_string (d, "solaris.devfs_path", devfs_path); in devinfo_set_default_properties()
153 char *devfs_path; in devinfo_add_node() local
158 devfs_path = di_devfs_path (node); in devinfo_add_node()
165 d = handler->add (parent, node, devfs_path, device_type); in devinfo_add_node()
168 di_devfs_path_free(devfs_path); in devinfo_add_node()
175 devinfo_hotplug_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler, int action, in… in devinfo_hotplug_enqueue() argument
183 strlcpy (hotplug_event->un.devfs.devfs_path, devfs_path, in devinfo_hotplug_enqueue()
184 sizeof (hotplug_event->un.devfs.devfs_path)); in devinfo_hotplug_enqueue()
[all …]
H A Ddevinfo_storage.c58 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_typ…
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_typ…
68 static HalDevice *devinfo_lofi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *devic…
[all …]
H A Dsysevent.c326 sysevent_dev_add(gchar *devfs_path, gchar *name) in sysevent_dev_add() argument
331 HAL_INFO (("dev_add: %s %s", name, devfs_path)); in sysevent_dev_add()
333 parent = hal_util_find_closest_ancestor (devfs_path, &parent_devfs_path, &hotplug_devfs_path); in sysevent_dev_add()
350 sysevent_dev_remove(gchar *devfs_path, gchar *name) in sysevent_dev_remove() argument
352 HAL_INFO (("dev_remove: %s %s", name, devfs_path)); in sysevent_dev_remove()
354 devinfo_remove_branch (devfs_path, NULL); in sysevent_dev_remove()
359 sysevent_dev_branch(gchar *devfs_path) in sysevent_dev_branch() argument
361 HAL_INFO (("branch_remove: %s", devfs_path)); in sysevent_dev_branch()
363 devinfo_remove_branch (devfs_path, NULL); in sysevent_dev_branch()
368 sysevent_lofi_add(gchar *devfs_path, gchar *name) in sysevent_lofi_add() argument
[all …]
H A Ddevinfo_misc.c73 devinfo_computer_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) in devinfo_computer_add() argument
78 if (strcmp (devfs_path, "/") != 0) { in devinfo_computer_add()
88 hal_device_property_set_string (d, "solaris.devfs_path", devfs_path); in devinfo_computer_add()
109 devinfo_add_enqueue (d, devfs_path, &devinfo_computer_handler); in devinfo_computer_add()
127 devinfo_keyboard_add(HalDevice *parent, di_node_t node, char *devfs_path, in devinfo_keyboard_add() argument
139 devinfo_set_default_properties(d, parent, node, devfs_path); in devinfo_keyboard_add()
158 devinfo_add_enqueue(d, devfs_path, &devinfo_keyboard_handler); in devinfo_keyboard_add()
164 devinfo_mouse_add(HalDevice *parent, di_node_t node, char *devfs_path, in devinfo_mouse_add() argument
176 devinfo_set_default_properties(d, parent, node, devfs_path); in devinfo_mouse_add()
193 devinfo_add_enqueue(d, devfs_path, &devinfo_mouse_handler); in devinfo_mouse_add()
[all …]
H A Ddevinfo_ieee1394.c34 HalDevice *devinfo_ieee1394_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_t…
35 static HalDevice *devinfo_scsa1394_add(HalDevice *d, di_node_t node, gchar *devfs_path);
47 devinfo_ieee1394_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) in devinfo_ieee1394_add() argument
67 d = devinfo_scsa1394_add (parent, node, devfs_path); in devinfo_ieee1394_add()
74 devinfo_scsa1394_add(HalDevice *parent, di_node_t node, gchar *devfs_path) in devinfo_scsa1394_add() argument
80 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_scsa1394_add()
84 devinfo_add_enqueue (d, devfs_path, &devinfo_ieee1394_handler); in devinfo_scsa1394_add()
H A Ddevinfo_usb.c37 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) in get_usb_devlink() argument
111 (strstr(lpath, devfs_path) != NULL)) { in get_usb_devlink()
124 devinfo_usb_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) in devinfo_usb_add() argument
145 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_usb_add()
173 set_usb_properties (d, node, devfs_path, driver_name); in devinfo_usb_add()
177 if (hdl = di_devlink_init (devfs_path, DI_MAKE_LINK)) { in devinfo_usb_add()
182 devinfo_add_enqueue (d, devfs_path, &devinfo_usb_handler); in devinfo_usb_add()
191 devfs_path, 0); in devinfo_usb_add()
[all …]
H A Ddevinfo.h23 HalDevice *(*add) (HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
26 void (*remove) (char *devfs_path);
54 …devinfo_set_default_properties (HalDevice *d, HalDevice *parent, di_node_t node, char *devfs_path);
63 void hotplug_event_begin_remove_devinfo (HalDevice *d, gchar *devfs_path, void *end_token);
64 void devinfo_hotplug_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler, int actio…
65 void devinfo_add_enqueue(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler);
66 void devinfo_add_enqueue_at_front(HalDevice *d, gchar *devfs_path, DevinfoDevHandler *handler);
67 void devinfo_remove_enqueue(gchar *devfs_path, DevinfoDevHandler *handler);
H A Dhotplug.c66 …_ERROR (("devpath %s already present in store, ignore event", hotplug_event->un.devfs.devfs_path)); in hotplug_event_begin_devfs_add()
80 if (strcmp(hotplug_event->un.devfs.devfs_path, "/") != 0) { in hotplug_event_begin_devfs_add()
81 …HAL_ERROR (("Parent is NULL devfs_path=%s parent_udi=%s", hotplug_event->un.devfs.devfs_path, pare… in hotplug_event_begin_devfs_add()
116 HAL_ERROR (("devpath %s not present in store, ignore event", hotplug_event->un.devfs.devfs_path)); in hotplug_event_begin_devfs_remove()
123 hotplug_event->un.devfs.devfs_path, in hotplug_event_begin_devfs_remove()
132 HAL_INFO (("hotplug_event_begin_devfs: %s", hotplug_event->un.devfs.devfs_path)); in hotplug_event_begin_devfs()
135 hotplug_event->un.devfs.devfs_path); in hotplug_event_begin_devfs()
H A Ddevinfo_acpi.c39 char *devfs_path, char *device_type);
62 devinfo_acpi_add(HalDevice *parent, di_node_t node, char *devfs_path, in devinfo_acpi_add() argument
90 devinfo_set_default_properties(d, parent, node, devfs_path); in devinfo_acpi_add()
91 devinfo_add_enqueue(d, devfs_path, &devinfo_acpi_handler); in devinfo_acpi_add()
131 devinfo_power_button_add(HalDevice *parent, di_node_t node, char *devfs_path, in devinfo_power_button_add() argument
144 devinfo_set_default_properties(d, parent, node, devfs_path); in devinfo_power_button_add()
151 devinfo_add_enqueue(d, devfs_path, &devinfo_power_button_handler); in devinfo_power_button_add()
H A Ddevinfo_pci.c29 HalDevice *devinfo_pci_add (HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
40 HalDevice *devinfo_pci_add (HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) in devinfo_pci_add() argument
61 devinfo_set_default_properties (d, parent, node, devfs_path); in devinfo_pci_add()
116 devinfo_add_enqueue (d, devfs_path, &devinfo_pci_handler); in devinfo_pci_add()
H A Ddevinfo_storage.h24 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);
/illumos-gate/usr/src/lib/libdevice/
H A Ddevctl.c104 devctl_bus_acquire(char *devfs_path, uint_t flags) in devctl_bus_acquire() argument
110 ((devfs_path != NULL) ? devfs_path : nullptr), flags); in devctl_bus_acquire()
112 if ((devfs_path == NULL) || ((flags != 0) && (flags != DC_EXCL))) { in devctl_bus_acquire()
118 return (dc_mkhndl(DEVCTL_BUS, devfs_path, oflags, NULL)); in devctl_bus_acquire()
127 devctl_device_acquire(char *devfs_path, uint_t flags) in devctl_device_acquire() argument
133 ((devfs_path != NULL) ? devfs_path : nullptr), flags); in devctl_device_acquire()
135 if ((devfs_path == NULL) || ((flags != 0) && (flags != DC_EXCL))) { in devctl_device_acquire()
141 return (dc_mkhndl(DEVCTL_DEVICE, devfs_path, oflags, NULL)); in devctl_device_acquire()
151 devctl_ap_acquire(char *devfs_path, uint_t flags) in devctl_ap_acquire() argument
157 ((devfs_path != NULL) ? devfs_path : nullptr), flags); in devctl_ap_acquire()
[all …]
H A Dlibdevice.h46 devctl_device_acquire(char *devfs_path, uint_t flags);
49 devctl_bus_acquire(char *devfs_path, uint_t flags);
52 devctl_ap_acquire(char *devfs_path, uint_t flags);
55 devctl_pm_dev_acquire(char *devfs_path, uint_t flags);
58 devctl_pm_bus_acquire(char *devfs_path, uint_t flags);
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/enchilada/envd/
H A Dpiclenvsetup.c399 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local
437 devfs_path = sensorp->devfs_path; in add_sensor_nodes_and_props()
441 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_sensor_nodes_and_props()
516 char *pname, *nodename, *devfs_path; in add_disk_nodes_and_props() local
559 devfs_path = diskp->devfs_path; in add_disk_nodes_and_props()
563 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_disk_nodes_and_props()
654 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local
698 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props()
702 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_fan_nodes_and_props()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chicago/envd/
H A Dpiclenvsetup.c389 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local
435 devfs_path = sensorp->devfs_path; in add_sensor_nodes_and_props()
439 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_sensor_nodes_and_props()
513 char *pname, *nodename, *devfs_path; in add_disk_nodes_and_props() local
561 devfs_path = diskp->devfs_path; in add_disk_nodes_and_props()
565 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_disk_nodes_and_props()
656 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local
704 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props()
708 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_fan_nodes_and_props()
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddevfsadm.h224 int devfsadm_enumerate_int(char *devfs_path, int index, char **buf,
226 int devfsadm_enumerate_char(char *devfs_path, int index, char **buf,
237 int ctrl_enumerate_int(char *devfs_path, int index, char **buf,
243 int devfsadm_enumerate_char_start(char *devfs_path, int index,
245 int devfsadm_read_link(di_node_t node, char *link, char **devfs_path);
H A Dport_link.c370 portcmp(char *devfs_path, char *phys_path) in portcmp() argument
377 p1 = strrchr(devfs_path, ':'); in portcmp()
395 rv = strcmp(devfs_path, phys_path); in portcmp()
420 char *devfs_path; in check_compat_ports() local
426 if (devfsadm_read_link(node, port, &devfs_path) == DEVFSADM_SUCCESS && in check_compat_ports()
427 portcmp(devfs_path, phys_path) != 0) { in check_compat_ports()
428 free(devfs_path); in check_compat_ports()
432 free(devfs_path); in check_compat_ports()
435 if (devfsadm_read_link(node, port, &devfs_path) == DEVFSADM_SUCCESS && in check_compat_ports()
436 portcmp(devfs_path, phys_path) != 0) { in check_compat_ports()
[all …]
/illumos-gate/usr/src/cmd/hal/tools/sunos/
H A Dhal-system-lcd-get-brightness-sunos.c35 char *devfs_path; in main() local
40 if ((devfs_path = getenv("HAL_PROP_SOLARIS_DEVFS_PATH")) == NULL) { in main()
44 strlcat(device_file, devfs_path, HAL_PATH_MAX); in main()
H A Dhal-system-lcd-set-brightness-sunos.c36 char *devfs_path; in main() local
41 if ((devfs_path = getenv("HAL_PROP_SOLARIS_DEVFS_PATH")) == NULL) { in main()
44 strlcat(device_file, devfs_path, HAL_PATH_MAX); in main()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/taco/envd/
H A Dpiclenvsetup.c330 char *pname, *nodename, *devfs_path; in add_sensor_nodes_and_props() local
367 devfs_path = sensorp->devfs_path; in add_sensor_nodes_and_props()
371 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_sensor_nodes_and_props()
449 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local
488 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props()
492 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_fan_nodes_and_props()
/illumos-gate/usr/src/lib/libbsm/common/
H A Dgetdment.c57 static int dmap_resolve_link(char *devpath, char **devfs_path);
456 dmap_resolve_link(char *devpath, char **devfs_path) in dmap_resolve_link() argument
464 if (devfs_path) { in dmap_resolve_link()
465 *devfs_path = NULL; in dmap_resolve_link()
499 return (dmap_resolve_link(stage_link, devfs_path)); in dmap_resolve_link()
502 if (devfs_path) { in dmap_resolve_link()
503 *devfs_path = strdup(ptr); in dmap_resolve_link()
504 if (*devfs_path == NULL) { in dmap_resolve_link()
/illumos-gate/usr/src/cmd/hal/probing/acpi/
H A Dprobe-acpi.c38 char *devfs_path; in main() local
44 if ((devfs_path = getenv("HAL_PROP_SOLARIS_DEVFS_PATH")) == NULL) in main()
46 strlcat(device_file, devfs_path, HAL_PATH_MAX); in main()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/
H A Dpiclenvsetup.c449 char *pname, *nodename, *refnode, *devfs_path; in add_sensor_nodes_and_props() local
507 devfs_path = sensorp->devfs_path; in add_sensor_nodes_and_props()
511 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_sensor_nodes_and_props()
623 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local
667 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props()
671 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_fan_nodes_and_props()
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/
H A Dpiclenvsetup.c472 char *pname, *nodename, *refnode, *devfs_path; in add_sensor_nodes_and_props() local
530 devfs_path = sensorp->devfs_path; in add_sensor_nodes_and_props()
534 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_sensor_nodes_and_props()
661 char *pname, *nodename, *devfs_path; in add_fan_nodes_and_props() local
705 devfs_path = fanp->devfs_path; in add_fan_nodes_and_props()
709 strlen(devfs_path)+1, (void *)devfs_path, &proph); in add_fan_nodes_and_props()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_devperm.c273 devfs_resolve_link(char *devpath, char **devfs_path) in devfs_resolve_link() argument
281 if (devfs_path) { in devfs_resolve_link()
282 *devfs_path = NULL; in devfs_resolve_link()
316 return (devfs_resolve_link(stage_link, devfs_path)); in devfs_resolve_link()
319 if (devfs_path) { in devfs_resolve_link()
320 *devfs_path = strdup(ptr); in devfs_resolve_link()
321 if (*devfs_path == NULL) { in devfs_resolve_link()
338 char *devfs_path = NULL; in check_driver_match() local
342 if (devfs_resolve_link(path, &devfs_path) == 0) { in check_driver_match()
348 (void) strcpy(pwd_buf, devfs_path); in check_driver_match()
[all …]

123