kernels/linux-2.4.0/drivers/s390/char/con3215.c
/*
 * Get a request structure from the free list
 */
Get a request structure from the free list
Get a request structure from the free list
extern inline raw3215_req *raw3215_alloc_req(void) {
	raw3215_req *req;
	unsigned long flags;
	spin_lock_irqsave(&raw3215_freelist_lock, flags);
	req = raw3215_freelist;
	raw3215_freelist = req->next;
	spin_unlock_irqrestore(&raw3215_freelist_lock, flags);
	return req;
}
extern inline raw3215_req * raw3215_alloc_req ( void ) { raw3215_req * req ; unsigned long flags ; spin_lock_irqsave ( & raw3215_freelist_lock , flags ) ; req = raw3215_freelist ; raw3215_freelist = req -> next ; spin_unlock_irqrestore ( & raw3215_freelist_lock , flags ) ; return req ; }
Get a request structure from the free list
Get a request structure from the free list