aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/cam_periph.h
diff options
context:
space:
mode:
authorJustin T. Gibbs <gibbs@FreeBSD.org>2011-06-14 14:53:17 +0000
committerJustin T. Gibbs <gibbs@FreeBSD.org>2011-06-14 14:53:17 +0000
commit3501942bbe37215f9ad828fcb81106a2061b8a54 (patch)
treed9c9817bd94776da1147e878d4d36db265371c63 /sys/cam/cam_periph.h
parent1875bbfe5418f8247ad06770b63089be636ff9f7 (diff)
downloadsrc-3501942bbe37215f9ad828fcb81106a2061b8a54.tar.gz
src-3501942bbe37215f9ad828fcb81106a2061b8a54.zip
Notes
Diffstat (limited to 'sys/cam/cam_periph.h')
-rw-r--r--sys/cam/cam_periph.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/cam/cam_periph.h b/sys/cam/cam_periph.h
index 33e9f7584355..58bfd7b2b187 100644
--- a/sys/cam/cam_periph.h
+++ b/sys/cam/cam_periph.h
@@ -142,6 +142,7 @@ cam_status cam_periph_alloc(periph_ctor_t *periph_ctor,
char *name, cam_periph_type type, struct cam_path *,
ac_callback_t *, ac_code, void *arg);
struct cam_periph *cam_periph_find(struct cam_path *path, char *name);
+int cam_periph_list(struct cam_path *, struct sbuf *);
cam_status cam_periph_acquire(struct cam_periph *periph);
void cam_periph_release(struct cam_periph *periph);
void cam_periph_release_locked(struct cam_periph *periph);
@@ -200,5 +201,12 @@ cam_periph_owned(struct cam_periph *periph)
return (mtx_owned(periph->sim->mtx));
}
+static __inline int
+cam_periph_sleep(struct cam_periph *periph, void *chan, int priority,
+ const char *wmesg, int timo)
+{
+ return (msleep(chan, periph->sim->mtx, priority, wmesg, timo));
+}
+
#endif /* _KERNEL */
#endif /* _CAM_CAM_PERIPH_H */