devtype
devinfo->devname = devinfo->devtype = devinfo->devauths =
devinfo->devtype = optarg;
if (strlen(devinfo->devtype) == 0) {
if (da_defs = getdadeftype(devinfo->devtype)) {
devinfo.devname = devinfo.devtype = devinfo.devauths = devinfo.devexec =
dprintf("No default attributes for %s\n", da_defs->devtype);
(void) printf("dev_type=%s\n", da_defs->devtype);
char *devtype;
"device_type", (char **)&devtype);
((strcmp(devtype, "pci") != 0) && (strcmp(devtype, "pciex") != 0)))
device->stage.devtype = IB_DEV_EFI;
data->device.devtype = IB_DEV_EFI;
device->stage.devtype = data->device.devtype;
device->stage.devtype = data->device.devtype;
data->device.devtype = IB_DEV_VTOC;
device->stage.devtype = data->device.devtype;
pl->pl_device->stage.devtype = data->device.devtype;
data->device.devtype = IB_DEV_MBR;
device->stage.devtype = IB_DEV_MBR;
device->stage.devtype = IB_DEV_MBR;
device->stage.devtype = IB_DEV_MBR;
if (data->device.devtype == IB_DEV_UNKNOWN)
if (data->device.devtype == IB_DEV_UNKNOWN)
device->devtype == IB_DEV_MBR? "partition" : "slice",
ib_devtype_t devtype; /* partitioning type */
ib_devtype_t devtype;
static int g_init(int *devtype, int *fdes);
g_init(int *devtype, int *fdes)
*devtype = G_NO_DEV;
*devtype = G_FILE;
g_read(int devtype, int fdes, char *buf, unsigned nbytes)
if (devtype < 0 || devtype >= G_DEV_MAX) {
g_write(int devtype, int fdes, char *buf, unsigned nbytes)
if (devtype < 0 || devtype >= G_DEV_MAX) {
char *str, *devtype;
DI_PROP_DEV_TYPE, &devtype);
if (strcmp(devtype, PROPVAL_PCIEX) == 0)
devtype = DEVTYPE_PCIE;
(void) snprintf(buf, bufsz, "%s%d", devtype, *nump);
di_driver_name(node), di_instance(node), devtype, pci_dev);
char *devtype;
DI_PROP_DEV_TYPE, &devtype) > 0)
if (strcmp(devtype, PROPVAL_PCIEX) == 0)
_update_dev(deventry_t *dentry, int action, const char *devtype, char *devname,
newentry.devinfo.devtype = (char *)devtype;
newentry.devinfo.devtype = (char *)devtype;
int devtype = 0;
devtype = DA_AUDIO;
devtype = DA_RMDISK;
devtype = DA_RMDISK;
devtype = DA_RMDISK;
(void) _update_devalloc_db(&devlist, devtype, DA_REMOVE,
g_init(int *devtype, int *fdes)
*devtype = G_NO_DEV;
*devtype = G_FILE;
g_read(int devtype, int fdes, void *buf, size_t nbytes)
g_write(int devtype, int fdes, void *buf, size_t nbytes)
devtype = "Storage";
static char *devtype = "Volume";
fprintf (stderr, "org.freedesktop.Hal.Device.%s.UnknownFailure\n", devtype);
if (devtype(device, &pkgdev)) {
if (devtype(device, &pkgdev)) {
if (devtype(device, &pkgdev)) {
if (devtype((spoolDir ? spoolDir : get_PKGLOC()), &pkgdev) ||
if (*devtype != NULL)
di_devtype_get(topo_mod_t *mp, di_node_t src, char **devtype)
*devtype = topo_mod_strdup(mp, (char *)buf);
*devtype = NULL;
(void) fprintf(fp, "%s%s", (devinfo->devtype ? devinfo->devtype : ""),
(devinfo->devtype ? devinfo->devtype : ""), KV_DELIMITER);
(devinfo->devtype ? devinfo->devtype : ""), KV_TOKEN_DELIMIT);
(devinfo->devtype == NULL) ||
nentry->devinfo.devtype = dtype;
if (da_defs = getdadeftype(nentry->devinfo.devtype)) {
(void) fprintf(stdout, "type: %s\n", devinfo->devtype);
length = snprintf(buf, size, "%s%s", da_defs->devtype, sep);
rc = !(strcmp(da_defs->devtype, dargs->devinfo->devtype));
char *type = dargs->devinfo->devtype;
if ((rc = dmap_matchtype(devmapp, dargs->devinfo->devtype))
dargs->devinfo->devtype,
dargs->devinfo->devtype,
char *devtype;
char *devtype;
if (da_def->devtype == NULL)
return ((strcmp(da_def->devtype, type) == 0));
interpdadefs.devtype = getdadmfield(interpdadefline, KV_TOKEN_DELIMIT);
if (interpdadefs.devtype == NULL)
else if (dargs->devinfo->devtype)
return (da_matchtype(dap, dargs->devinfo->devtype));
else if (dargs->devinfo->devtype)
return (dmap_matchtype(dmap, dargs->devinfo->devtype));
extern int devtype(char *alias, struct pkgdev *devp);
if (devtype(device1, &srcdev)) {
if (devtype(device2, &dstdev)) {
int err, devtype;
devtype = DTYPE_DIRECT;
devtype = DTYPE_SEQUENTIAL;
l2->device_type = devtype;
prom_write(ihandle_t fd, caddr_t buf, size_t len, uint_t startblk, char devtype)
prom_read(ihandle_t fd, caddr_t buf, size_t len, uint_t startblk, char devtype)
prom_findnode_bydevtype(pnode_t node, char *devtype)
prom_walk_devs(node, bytype_cb, devtype, &result);
int devtype; /* fstype */
if (cvp->v_vfsp->vfs_fstype == devtype) {
devtype = fstype;
vfsp->vfs_fstype = devtype;
vfs_make_fsid(&vfsp->vfs_fsid, vfsp->vfs_dev, devtype);
(void) strcpy(sbp->f_basetype, vfssw[devtype].vsw_name);
char *devtype = NULL;
&devtype) == DDI_SUCCESS) {
if (strcmp(devtype, "cpu") == 0) {
ddi_prop_free(devtype);
ddi_prop_free(devtype);
uchar_t devtype;
if (sgen_typenum(cp, &devtype) != 0) {
nodep->node_type = devtype;
uchar_t devtype;
devtype = inq->inq_dtype;
if (ddi_create_minor_node(dip, sgen_typename(devtype), S_IFCHR,
#define FLC_START_KSTAT(X, devtype, instance) \
(((struct flc_obj *)(X))->flc_data, (devtype), (instance))
extern int devtype;
scope_type(int devtype)
switch (devtype) {
static int fc_start_kstat(opaque_t queuep, char *devtype, int instance);
fc_start_kstat(opaque_t queuep, char *devtype, int instance)
uint_t startblk, char devtype);
extern pnode_t prom_findnode_bydevtype(pnode_t id, char *devtype);
char devtype[OBP_MAXDRVNAME];
(void) prom_getprop(node, OBP_DEVICETYPE, (caddr_t)devtype);
if (strcmp(devtype, sbdp_top_nodes[i].s_obp_type) == 0) {
if (strcmp(devtype, "cpu") == 0) {
char *devnm, *devtype;
if (md_get_prop_str(cba->mdp, cba->node, "device-type", &devtype)) {
"device_type", devtype) != DDI_SUCCESS) {
DR_DBG_IO("%s: device type is %s\n", __func__, devtype);
extern mcst_addr_t *vsw_del_addr(uint8_t devtype, void *arg, uint64_t addr);
extern int vsw_add_mcst(vsw_t *vswp, uint8_t devtype, uint64_t addr, void *arg);
extern int vsw_del_mcst(vsw_t *vswp, uint8_t devtype, uint64_t addr, void *arg);
vsw_del_addr(uint8_t devtype, void *arg, uint64_t addr)
__func__, devtype, addr);
if (devtype == VSW_VNETPORT) {
if (devtype == VSW_VNETPORT)
if (devtype == VSW_VNETPORT)
mcst_addr_t *vsw_del_addr(uint8_t devtype, void *arg, uint64_t addr);
vsw_add_mcst(vsw_t *vswp, uint8_t devtype, uint64_t addr, void *arg)
if (devtype == VSW_VNETPORT) {
ment->d_type = devtype;
if (devtype == VSW_VNETPORT) {
new_ent->d_type = devtype;
vsw_del_mcst(vsw_t *vswp, uint8_t devtype, uint64_t addr, void *arg)
if (devtype == VSW_VNETPORT) {
if (devtype == VSW_VNETPORT) {