---
name: "scsi_dev_info_list_add"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_dev_info_list_add"
---

# scsi\_dev\_info\_list\_add(9)

add one dev\_info list entry.

## 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

*compatible*

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

*vendor*

vendor string

*model*

model (product) string

*strflags*

integer string

*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.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
