Lines Matching refs:minor

220 static vmem_t		*dtrace_minor;		/* minor number arena */
4374 regs[rd] = (uintptr_t)minor( (dev_t)tupregs[0].dttk_value );
4383 * by the fact that we (a) want to include the minor name and
4390 int64_t minor = (int64_t)tupregs[1].dttk_value;
4414 * We want to have a name for the minor. In order to do this,
4415 * we need to walk the minor list from the devinfo. We want
4430 if (minor != -1) {
4451 if (m != minor) {
4476 * We have the minor data. Now we need to
4477 * copy the minor's name into the end of the
13627 minor_t minor;
13638 minor = (minor_t)(uintptr_t)vmem_alloc(dtrace_minor, 1,
13641 if (ddi_soft_state_zalloc(dtrace_softstate, minor) != DDI_SUCCESS) {
13642 vmem_free(dtrace_minor, (void *)(uintptr_t)minor, 1);
13650 * Darwin's DEVFS layer acquired the minor number for this "device" when it called
13651 * dtrace_devfs_clone_func(). At that time, dtrace_devfs_clone_func() proposed a minor number
13653 * (by calling vmem_free()). Now that minor number is being used for an open, so committing it
13654 * to use. The following vmem_alloc() must deliver that same minor number. FIXME.
13657 minor = (minor_t)(uintptr_t)vmem_alloc(dtrace_minor, 1,
13661 ASSERT(getminor(*devp) == minor);
13662 if (getminor(*devp) != minor) {
13663 printf("dtrace_open: couldn't re-acquire vended minor number %d. Instead got %d\n",
13664 getminor(*devp), minor);
13665 vmem_free(dtrace_minor, (void *)(uintptr_t)minor, 1);
13670 * so just vend the minor device number here de novo since no "open" has occurred. */
13673 if (ddi_soft_state_zalloc(dtrace_softstate, minor) != DDI_SUCCESS) {
13674 vmem_free(dtrace_minor, (void *)(uintptr_t)minor, 1);
13680 state = ddi_get_soft_state(dtrace_softstate, minor);
13683 (void) snprintf(c, sizeof (c), "dtrace_aggid_%d", minor);
13693 state->dts_dev = makedevice(major, minor);
14392 minor_t minor = getminor(state->dts_dev);
14499 ddi_soft_state_free(dtrace_softstate, minor);
14500 vmem_free(dtrace_minor, (void *)(uintptr_t)minor, 1);
16879 cmn_err(CE_NOTE, "/dev/dtrace couldn't create minor nodes");
16888 /* Darwin uses BSD cloning device driver to automagically obtain minor device number. */
17062 * If this wasn't an open with the "helper" minor, then it must be
17063 * the "dtrace" minor.
17190 minor_t minor = getminor(dev);
17194 if (minor == DTRACEMNRN_HELPER)
17200 state = ddi_get_soft_state(dtrace_softstate, minor);
17327 minor_t minor = getminor(dev);
17331 if (minor == DTRACEMNRN_HELPER)
17334 state = ddi_get_soft_state(dtrace_softstate, minor);
18234 minor_t minor = getminor(dev);
18240 state = ddi_get_soft_state(dtrace_softstate, minor);
19597 * Propose a minor number, namely the next number that vmem_alloc() will return.