Lines Matching defs:clone
42 * minor clone is created for each open(9E) request. There are
92 * Maximum number of clone minors that is allowed. This value
98 * Minor number is instance << 8 + clone minor from range 1-255; clone 0
160 int monitor_on; /* clone monitoring the button event */
161 /* clone 0 indicates no one is */
768 int clone;
778 for (clone = 1; clone < POWER_MAX_CLONE; clone++)
779 if (!softsp->clones[clone])
782 if (clone == POWER_MAX_CLONE) {
784 "to create a clone minor.");
789 *devp = makedevice(getmajor(*devp), (power_inst << 8) + clone);
790 softsp->clones[clone] = 1;
804 int clone;
813 clone = POWER_MINOR_TO_CLONE(getminor(dev));
815 if (softsp->monitor_on == clone)
817 softsp->clones[clone] = 0;
829 int clone;
835 clone = POWER_MINOR_TO_CLONE(getminor(dev));
843 softsp->monitor_on = clone;
861 * This clone is not monitoring the button.
863 if (softsp->monitor_on != clone) {