kernels/linux-2.4.0/drivers/s390/char/con3215.c
/*
 * Get a read request structure. If there is a queued read request
 * it is used, but that shouldn't happen because a 3215 terminal
 * won't accept a new read before the old one is completed.
 */
Get a read request structure. If there is a queued read request
it is used, but that shouldn't happen because a 3215 terminal
won't accept a new read before the old one is completed.
Get a read request structure . If there is a queued read request it is used but that shouldn ' t happen because a 3215 terminal won ' t accept a new read before the old one is completed .
static raw3215_req *raw3215_mk_read_req(raw3215_info *raw)
{
	raw3215_req *req;
	req = raw->queued_read;
	if (req == NULL) {
		req = raw3215_alloc_req();
		req->type = RAW3215_READ;
		req->info = raw;
	} else
		raw->queued_read = NULL;
	return req;
}
static raw3215_req * raw3215_mk_read_req ( raw3215_info * raw ) { raw3215_req * req ; req = raw -> queued_read ; if ( req == NULL ) { req = raw3215_alloc_req ( ) ; req -> type = RAW3215_READ ; req -> info = raw ; } else raw -> queued_read = NULL ; return req ; }
Get a read request structure.
Get a read request structure .
/* there can only be ONE read request at a time */ /* no queued read request, use new req structure */