rem: size_t wlen;
context: static int console_ioctl(void * cookie, uint32 op, void *buf, size_t len){	int err;	size_t wlen;		switch(op) {		case CONSOLE_OP_WRITEXY: {			int x,y;			mutex_lock(&console.lock);			x = ((int *)buf)[0];			y = ((int *)buf)[1];			save_cur();//			gotoxy(x, y);			wlen = len - 2 * sizeof(int);			if(_console_write(((char *)buf) + 2*sizeof(int), &wlen) == 0)				err = 0; // we're okay			else				err = EIO;			restore_cur();			mutex_unlock(&console.lock);			break;		}		default:			err = EINVAL;	}	return err;}