Name

scsi_dev_info_list_add — add one dev_info list entry.

Synopsis

int scsi_dev_info_list_add (int compatible,
 char * vendor,
 char * model,
 char * strflags,
 int flags);
 

Arguments

int compatible

if true, null terminate short strings. Otherwise space pad.

char * vendor

vendor string

char * model

model (product) string

char * strflags

integer string

int flags

if strflags NULL, use this flag value

Description

Create and add one dev_info entry for vendor, model, strflags or flag. If compatible, add to the tail of the list, do not space pad, and set devinfo->compatible. The scsi_static_device_list entries are added with compatible 1 and clfags NULL.

Return

0 OK, -error on failure.