Lines Matching refs:minor

224 static vmem_t		*dtrace_minor;		/* minor number arena */
4392 regs[rd] = (uintptr_t)minor( (dev_t)tupregs[0].dttk_value );
4401 * by the fact that we (a) want to include the minor name and
4408 int64_t minor = (int64_t)tupregs[1].dttk_value;
4432 * We want to have a name for the minor. In order to do this,
4433 * we need to walk the minor list from the devinfo. We want
4448 if (minor != -1) {
4469 if (m != minor) {
4494 * We have the minor data. Now we need to
4495 * copy the minor's name into the end of the
13669 minor_t minor;
13680 minor = (minor_t)(uintptr_t)vmem_alloc(dtrace_minor, 1,
13683 if (ddi_soft_state_zalloc(dtrace_softstate, minor) != DDI_SUCCESS) {
13684 vmem_free(dtrace_minor, (void *)(uintptr_t)minor, 1);
13692 * Darwin's DEVFS layer acquired the minor number for this "device" when it called
13693 * dtrace_devfs_clone_func(). At that time, dtrace_devfs_clone_func() proposed a minor number
13695 * (by calling vmem_free()). Now that minor number is being used for an open, so committing it
13696 * to use. The following vmem_alloc() must deliver that same minor number. FIXME.
13699 minor = (minor_t)(uintptr_t)vmem_alloc(dtrace_minor, 1,
13703 ASSERT(getminor(*devp) == minor);
13704 if (getminor(*devp) != minor) {
13705 printf("dtrace_open: couldn't re-acquire vended minor number %d. Instead got %d\n",
13706 getminor(*devp), minor);
13707 vmem_free(dtrace_minor, (void *)(uintptr_t)minor, 1);
13712 * so just vend the minor device number here de novo since no "open" has occurred. */
13715 if (ddi_soft_state_zalloc(dtrace_softstate, minor) != DDI_SUCCESS) {
13716 vmem_free(dtrace_minor, (void *)(uintptr_t)minor, 1);
13722 state = ddi_get_soft_state(dtrace_softstate, minor);
13725 (void) snprintf(c, sizeof (c), "dtrace_aggid_%d", minor);
13735 state->dts_dev = makedevice(major, minor);
14434 minor_t minor = getminor(state->dts_dev);
14541 ddi_soft_state_free(dtrace_softstate, minor);
14542 vmem_free(dtrace_minor, (void *)(uintptr_t)minor, 1);
16923 cmn_err(CE_NOTE, "/dev/dtrace couldn't create minor nodes");
16932 /* Darwin uses BSD cloning device driver to automagically obtain minor device number. */
17106 * If this wasn't an open with the "helper" minor, then it must be
17107 * the "dtrace" minor.
17234 minor_t minor = getminor(dev);
17238 if (minor == DTRACEMNRN_HELPER)
17244 state = ddi_get_soft_state(dtrace_softstate, minor);
17371 minor_t minor = getminor(dev);
17375 if (minor == DTRACEMNRN_HELPER)
17378 state = ddi_get_soft_state(dtrace_softstate, minor);
18279 minor_t minor = getminor(dev);
18285 state = ddi_get_soft_state(dtrace_softstate, minor);
19642 * Propose a minor number, namely the next number that vmem_alloc() will return.