Lines Matching refs:devpath

344 	 * subtree rooted at devpath, allowing each node the
672 di_retire_device(char *devpath, di_retire_t *dp, int flags)
687 if (devpath == NULL || devpath[0] == '\0') {
692 if (devpath[0] != '/' || strlen(devpath) >= PATH_MAX ||
693 strncmp(devpath, "/devices/", strlen("/devices/")) == 0 ||
694 strstr(devpath, "../devices/") || strrchr(devpath, ':')) {
695 dp->rt_debug(dp->rt_hdl, "[ERROR]: invalid devpath: %s\n",
696 devpath);
742 rarg.rcm_node = di_init(devpath, DINFOCPYALL);
745 "retiring anyway: %s\n", devpath);
753 "RCM handle. Returning RCM failure: %s\n", devpath);
758 rarg.rcm_root = devpath;
767 (void) snprintf(path, sizeof (path), "/devices%s", devpath);
770 "device. Bypassing retire_supported: %s\n", devpath);
773 "device type: %s\n", devpath);
784 "retire: %s\n", devpath);
789 ": %s\n", devpath);
792 ": %s\n", devpath);
795 "return code: %d: %s\n", retval, devpath);
800 if (modctl(MODRETIRE, devpath, constraint, clen) != 0) {
803 "%s: %s\n", devpath, strerror(retval));
809 devpath);
834 di_unretire_device(char *devpath, di_retire_t *dp)
839 if (devpath == NULL || devpath[0] == '\0') {
840 dp->rt_debug(dp->rt_hdl, "[ERROR]: NULL devpath\n");
844 if (devpath[0] != '/' || strlen(devpath) >= PATH_MAX ||
845 strncmp(devpath, "/devices/", strlen("/devices/")) == 0 ||
846 strstr(devpath, "../devices/") || strrchr(devpath, ':')) {
847 dp->rt_debug(dp->rt_hdl, "[ERROR]: invalid devpath: %s\n",
848 devpath);
852 if (modctl(MODUNRETIRE, devpath) != 0) {
855 "%s: %s\n", devpath, strerror(err));
860 devpath);