FreeBSD kernel CAM code
ctl_scsi_all.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
__BEGIN_DECLS const char * ctl_scsi_status_string (struct ctl_scsiio *ctsio)
 
void ctl_scsi_sense_print (struct ctl_scsiio *ctsio, struct scsi_inquiry_data *inq_data)
 
int ctl_scsi_command_string (struct ctl_scsiio *ctsio, struct scsi_inquiry_data *inq_data, struct sbuf *sb)
 
int ctl_scsi_sense_sbuf (struct ctl_scsiio *ctsio, struct scsi_inquiry_data *inq_data, struct sbuf *sb, scsi_sense_string_flags flags)
 
void ctl_scsi_path_string (union ctl_io *io, char *path_str, int strlen)
 
char * ctl_scsi_sense_string (struct ctl_scsiio *ctsio, struct scsi_inquiry_data *inq_data, char *str, int str_len)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ ctl_scsi_command_string()

int ctl_scsi_command_string ( struct ctl_scsiio ctsio,
struct scsi_inquiry_data inq_data,
struct sbuf *  sb 
)

Definition at line 102 of file ctl_scsi_all.c.

References ctl_scsiio::cdb, scsi_cdb_string(), SCSI_MAX_CDBLEN, and scsi_op_desc().

Referenced by ctl_io_sbuf(), ctl_process_done(), and ctl_scsi_sense_sbuf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ctl_scsi_path_string()

void ctl_scsi_path_string ( union ctl_io io,
char *  path_str,
int  strlen 
)

◆ ctl_scsi_sense_print()

void ctl_scsi_sense_print ( struct ctl_scsiio ctsio,
struct scsi_inquiry_data inq_data 
)

Definition at line 170 of file ctl_scsi_all.c.

References ctl_scsi_sense_sbuf(), and SSS_FLAG_PRINT_COMMAND.

Here is the call graph for this function:

◆ ctl_scsi_sense_sbuf()

int ctl_scsi_sense_sbuf ( struct ctl_scsiio ctsio,
struct scsi_inquiry_data inq_data,
struct sbuf *  sb,
scsi_sense_string_flags  flags 
)

Definition at line 127 of file ctl_scsi_all.c.

References ctl_scsiio::cdb, ctl_scsiio::cdb_len, ctl_scsi_command_string(), ctl_scsi_path_string(), scsi_sense_only_sbuf(), ctl_scsiio::sense_data, ctl_scsiio::sense_len, and SSS_FLAG_PRINT_COMMAND.

Referenced by ctl_io_error_sbuf(), ctl_scsi_sense_print(), and ctl_scsi_sense_string().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ctl_scsi_sense_string()

char * ctl_scsi_sense_string ( struct ctl_scsiio ctsio,
struct scsi_inquiry_data inq_data,
char *  str,
int  str_len 
)

Definition at line 153 of file ctl_scsi_all.c.

References ctl_scsi_sense_sbuf(), and SSS_FLAG_PRINT_COMMAND.

Here is the call graph for this function:

◆ ctl_scsi_status_string()

__BEGIN_DECLS const char * ctl_scsi_status_string ( struct ctl_scsiio ctsio)