#include <linux/kernel.h>
#include <linux/atomic.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_dbg.h>
static char *scsi_log_reserve_buffer(size_t *len)
{ … }
static void scsi_log_release_buffer(char *bufptr)
{ … }
static inline const char *scmd_name(const struct scsi_cmnd *scmd)
{ … }
static size_t sdev_format_header(char *logbuf, size_t logbuf_len,
const char *name, int tag)
{ … }
void sdev_prefix_printk(const char *level, const struct scsi_device *sdev,
const char *name, const char *fmt, ...)
{ … }
EXPORT_SYMBOL(…);
void scmd_printk(const char *level, const struct scsi_cmnd *scmd,
const char *fmt, ...)
{ … }
EXPORT_SYMBOL(…);
static size_t scsi_format_opcode_name(char *buffer, size_t buf_len,
const unsigned char *cdbp)
{ … }
size_t __scsi_format_command(char *logbuf, size_t logbuf_len,
const unsigned char *cdb, size_t cdb_len)
{ … }
EXPORT_SYMBOL(…);
void scsi_print_command(struct scsi_cmnd *cmd)
{ … }
EXPORT_SYMBOL(…);
static size_t
scsi_format_extd_sense(char *buffer, size_t buf_len,
unsigned char asc, unsigned char ascq)
{ … }
static size_t
scsi_format_sense_hdr(char *buffer, size_t buf_len,
const struct scsi_sense_hdr *sshdr)
{ … }
static void
scsi_log_dump_sense(const struct scsi_device *sdev, const char *name, int tag,
const unsigned char *sense_buffer, int sense_len)
{ … }
static void
scsi_log_print_sense_hdr(const struct scsi_device *sdev, const char *name,
int tag, const struct scsi_sense_hdr *sshdr)
{ … }
static void
scsi_log_print_sense(const struct scsi_device *sdev, const char *name, int tag,
const unsigned char *sense_buffer, int sense_len)
{ … }
void
scsi_print_sense_hdr(const struct scsi_device *sdev, const char *name,
const struct scsi_sense_hdr *sshdr)
{ … }
EXPORT_SYMBOL(…);
void __scsi_print_sense(const struct scsi_device *sdev, const char *name,
const unsigned char *sense_buffer, int sense_len)
{ … }
EXPORT_SYMBOL(…);
void scsi_print_sense(const struct scsi_cmnd *cmd)
{ … }
EXPORT_SYMBOL(…);
void scsi_print_result(const struct scsi_cmnd *cmd, const char *msg,
int disposition)
{ … }
EXPORT_SYMBOL(…);