kernels/linux-2.4.0/drivers/s390/char/con3215.c
/*
 * Put a request structure back to the free list
 */
Put a request structure back to the free list
Put a request structure back to the free list
extern inline void raw3215_free_req(raw3215_req *req) {
	unsigned long flags;
        if (req->type == RAW3215_FREE)
                return;         
        req->type = RAW3215_FREE;
	spin_lock_irqsave(&raw3215_freelist_lock, flags);
	req->next = raw3215_freelist;
	raw3215_freelist = req;
	spin_unlock_irqrestore(&raw3215_freelist_lock, flags);
}
extern inline void raw3215_free_req ( raw3215_req * req ) { unsigned long flags ; if ( req -> type == RAW3215_FREE ) return ; req -> type = RAW3215_FREE ; spin_lock_irqsave ( & raw3215_freelist_lock , flags ) ; req -> next = raw3215_freelist ; raw3215_freelist = req ; spin_unlock_irqrestore ( & raw3215_freelist_lock , flags ) ; }
Put a request structure back to the free list
Put a request structure back to the free list
/* don't free a free request */