cons 53 kernel/console.c } cons; cons 87 kernel/console.c acquire(&cons.lock); cons 91 kernel/console.c while(cons.r == cons.w){ cons 93 kernel/console.c release(&cons.lock); cons 96 kernel/console.c sleep(&cons.r, &cons.lock); cons 99 kernel/console.c c = cons.buf[cons.r++ % INPUT_BUF_SIZE]; cons 105 kernel/console.c cons.r--; cons 124 kernel/console.c release(&cons.lock); cons 138 kernel/console.c acquire(&cons.lock); cons 145 kernel/console.c while(cons.e != cons.w && cons 146 kernel/console.c cons.buf[(cons.e-1) % INPUT_BUF_SIZE] != '\n'){ cons 147 kernel/console.c cons.e--; cons 153 kernel/console.c if(cons.e != cons.w){ cons 154 kernel/console.c cons.e--; cons 159 kernel/console.c if(c != 0 && cons.e-cons.r < INPUT_BUF_SIZE){ cons 166 kernel/console.c cons.buf[cons.e++ % INPUT_BUF_SIZE] = c; cons 168 kernel/console.c if(c == '\n' || c == C('D') || cons.e-cons.r == INPUT_BUF_SIZE){ cons 171 kernel/console.c cons.w = cons.e; cons 172 kernel/console.c wakeup(&cons.r); cons 178 kernel/console.c release(&cons.lock); cons 184 kernel/console.c initlock(&cons.lock, "cons");