kernels/linux-2.4.0/drivers/s390/char/con3215.c
/*
 * Get a write request structure. That is either a new or the last
 * queued write request. The request structure is set up in 
 * raw3215_mk_write_ccw.
 */
Get a write request structure. That is either a new or the last
queued write request. The request structure is set up in
raw3215_mk_write_ccw.
Get a write request structure . That is either a new or the last queued write request . The request structure is set up in raw3215_mk_write_ccw .
static raw3215_req *raw3215_mk_write_req(raw3215_info *raw)
{
	raw3215_req *req;
	req = raw->queued_write;
	if (req == NULL) {
		req = raw3215_alloc_req();
		req->type = RAW3215_WRITE;
		req->info = raw;
		req->start = raw->head;
	} else
		raw->queued_write = NULL;
	return req;
}
static raw3215_req * raw3215_mk_write_req ( raw3215_info * raw ) { raw3215_req * req ; req = raw -> queued_write ; if ( req == NULL ) { req = raw3215_alloc_req ( ) ; req -> type = RAW3215_WRITE ; req -> info = raw ; req -> start = raw -> head ; } else raw -> queued_write = NULL ; return req ; }
Get a write request structure.
Get a write request structure .
/* check if there is a queued write request */ /* no queued write request, use new req structure */