Lines Matching defs:unit
82 int unit, error;
84 unit = minor(dev);
85 if (unit > 1)
114 if (cn_devvp[unit] != NULLVP)
116 if ((error = cdevvp(cndev, &cn_devvp[unit])) != 0)
118 error = vn_lock(cn_devvp[unit], LK_EXCLUSIVE | LK_RETRY);
120 error = VOP_OPEN(cn_devvp[unit], flag, kauth_cred_get());
121 VOP_UNLOCK(cn_devvp[unit]);
130 int unit, error;
132 unit = minor(dev);
137 vp = cn_devvp[unit];
138 cn_devvp[unit] = NULL;