2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright (c) 2017, Joyent, Inc.
15 .Dt SCSI_HBA_IPORT_REGISTER 9F
18 .Nm scsi_hba_iport_register
19 .Nd register a new iport
23 .Fo scsi_hba_iport_register
29 This interface is still evolving in illumos.
30 API and ABI stability is
39 The name of the iport to add.
43 .Fn scsi_hba_iport_register
44 function is used to create a new iport.
45 For more information on iports and their uses, see
47 This interface is generally used then there are a fixed, static set of
48 iports that exist in the system.
49 If the set of iports is dynamic or related to phys coming online and
50 offline, then the driver should instead consider using the
54 The iport will be created as a child of the device represented by
56 The iport will be bound to the same driver.
57 To distinguish nodes, the driver should use the
58 .Xr scsi_hba_iport_unit_address 9F
61 The name of the iport, specified by
63 must be unique for a given parent.
64 The iport will not be created if the name is already in use.
65 While names generally are based on unit addresses, they may be synthetic
69 .Fn scsi_hba_iport_register
70 function is generally called during the
72 entry point and may be called from
78 Upon successful completion, the
79 .Fn scsi_hba_iport_register
88 .Xr scsi_hba_iportmap_iport_add 9F