cam_queue.h (c3aac50f284c6cca5b4f2eb46aaa13812cb8b630) | cam_queue.h (c447342094276b4d604449bb776063c7b88c4992) |
---|---|
1/* 2 * CAM request queue management definitions. 3 * 4 * Copyright (c) 1997 Justin T. Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26 * SUCH DAMAGE. 27 * 28 * $FreeBSD$ 29 */ 30 31#ifndef _CAM_CAM_QUEUE_H 32#define _CAM_CAM_QUEUE_H 1 33 | 1/* 2 * CAM request queue management definitions. 3 * 4 * Copyright (c) 1997 Justin T. Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26 * SUCH DAMAGE. 27 * 28 * $FreeBSD$ 29 */ 30 31#ifndef _CAM_CAM_QUEUE_H 32#define _CAM_CAM_QUEUE_H 1 33 |
34#ifdef KERNEL | 34#ifdef _KERNEL |
35 36#include <sys/queue.h> 37 38/* 39 * This structure implements a heap based priority queue. The queue 40 * assumes that the objects stored in it begin with a cam_qentry 41 * structure holding the priority information used to sort the objects. 42 * This structure is opaque to clients (outside of the XPT layer) to allow --- 186 unchanged lines hidden (view full) --- 229 230static __inline void 231cam_ccbq_release_opening(struct cam_ccbq *ccbq) 232{ 233 ccbq->held--; 234 ccbq->devq_openings++; 235} 236 | 35 36#include <sys/queue.h> 37 38/* 39 * This structure implements a heap based priority queue. The queue 40 * assumes that the objects stored in it begin with a cam_qentry 41 * structure holding the priority information used to sort the objects. 42 * This structure is opaque to clients (outside of the XPT layer) to allow --- 186 unchanged lines hidden (view full) --- 229 230static __inline void 231cam_ccbq_release_opening(struct cam_ccbq *ccbq) 232{ 233 ccbq->held--; 234 ccbq->devq_openings++; 235} 236 |
237#endif /* KERNEL */ | 237#endif /* _KERNEL */ |
238#endif /* _CAM_CAM_QUEUE_H */ | 238#endif /* _CAM_CAM_QUEUE_H */ |