Rechercher une page de manuel
sanitize_inquiry_string
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
sanitize_inquiry_string - remove non-graphical chars from an INQUIRY result stringSYNOPSIS
- void sanitize_inquiry_string(unsigned char * s, int len);
ARGUMENTS
s
- INQUIRY result string to sanitize
len
- length of the string
DESCRIPTION
The 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.
AUTHORS
James Bottomley <James.Bottomley@hansenpartnership.com>
- Author.
Rob Landley <rob@landley.net>
- Author.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre