sys/kern/tty_subr.c
/*
 * Initialize clist by freeing all character blocks.
 */
Initialize clist by freeing all character blocks.
Initialize clist by freeing all character blocks .
void
clist_init()
{
	register int ccp;
	register struct cblock *cp;
	ccp = (int) cfree;
	ccp = (ccp + CROUND) & ~CROUND;
	for(cp = (struct cblock *) ccp; cp < &cfree[nclist - 1]; cp++) {
		cp->c_next = cfreelist;
		cfreelist = cp;
		cfreecount += CBSIZE;
	}
}
void clist_init ( ) { register int ccp ; register struct cblock * cp ; ccp = ( int ) cfree ; ccp = ( ccp + CROUND ) & ~ CROUND ; for ( cp = ( struct cblock * ) ccp ; cp < & cfree [ nclist - 1 ] ; cp ++ ) { cp -> c_next = cfreelist ; cfreelist = cp ; cfreecount += CBSIZE ; } }
Initialize clist by freeing all character blocks.
Initialize clist by freeing all character blocks .