Lines Matching refs:minor
475 minor_t minor;
478 minor = getminor((dev_t)arg);
479 instance = pshot_minor_decode_inst(minor);
485 "on minor %u, instance %d", minor, instance);
495 "minor %u, instance %d", infocmd, minor, instance);
548 * minor nodes setup
559 /* set each minor, then create on dip all together */
563 pshot->nodes[i].minor = pshot_minor_encode(instance, i);
569 pshot->nodes[i].minor = pshot_minor_encode(instance, i);
576 S_IFCHR, pshot->nodes[i].minor, DDI_NT_NEXUS, 0) !=
579 "minor %s", pshot->nodes[i].name);
1005 * returns a minor number encoded with instance <inst> and an index <nodenum>
1006 * that identifies the minor node for this instance
1016 * returns instance of <minor>
1019 pshot_minor_decode_inst(minor_t minor)
1021 return (minor >> PSHOT_NODENUM_BITS());
1025 * returns node number indexing a minor node for the instance in <minor>
1028 pshot_minor_decode_nodenum(minor_t minor)
1030 return (minor & ((1 << PSHOT_NODENUM_BITS()) - 1));
1859 cmn_err(CE_WARN, "pshot_ioctl: unmatched nodename on minor %u",
1860 pshot->nodes[nodenum].minor);