Man Page: sanitize_inquiry_string
Operating Environment: suse
Section: 9
SANITIZE_INQUIRY_STR(9) SCSI mid layer SANITIZE_INQUIRY_STR(9)NAMEsanitize_inquiry_string - remove non-graphical chars from an INQUIRY result stringSYNOPSISvoid sanitize_inquiry_string(unsigned char * s, int len);ARGUMENTSs INQUIRY result string to sanitize len length of the stringDESCRIPTIONThe SCSI spec says that INQUIRY vendor, product, and revision strings must consist entirely of graphic ASCII characters, padded on the right with spaces. Since not all devices obey this rule, we will replace non-graphic or non-ASCII characters with spaces. Exception: a NUL character is interpreted as a string terminator, so all the following characters are set to spaces.AUTHORSJames Bottomley <James.Bottomley@hansenpartnership.com> Author. Rob Landley <rob@landley.net> Author.COPYRIGHTKernel Hackers Manual 2.6. July 2010 SANITIZE_INQUIRY_STR(9)
| Related Man Pages |
|---|
| tr(1) - bsd |
| scsi_id(8) - linux |
| scsi_id(8) - debian |
| fc_remote_port_add(9) - suse |
| inquiry-product-id(9p) - opensolaris |
| Similar Topics in the Unix Linux Community |
|---|
| SOCKS proxy & PAM configuration exposure |
| Tar Command |
| A (ksh) Library For and From UNIX.com |
| Docker learning Phase-I |
| 32 bit process addressing more than 4GB |