Lines Matching defs:unit
345 int unit = GET_MINOR(dev);
348 if (unit < 0 || unit > IPL_LOGMAX)
353 switch (unit)
359 if ((events & (POLLIN | POLLRDNORM)) && ipf_log_canread(&ipfmain, unit))
380 selrecord(td, &ipfmain.ipf_selwait[unit]);
408 int unit = GET_MINOR(dev);
411 if (IPL_LOGMAX < unit)
414 switch (unit)
455 int unit = GET_MINOR(dev);
457 if (IPL_LOGMAX < unit)
458 unit = ENXIO;
460 unit = 0;
461 return unit;
483 int unit = GET_MINOR(dev);
485 if (unit < 0)
491 if (unit == IPL_LOGSYNC)
495 return ipf_log_read(&ipfmain, unit, uio);