| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Library Interfaces and Headers Oracle Solaris 11 Information Library |
Library Interfaces and Headers
SMHBA_GetAdapterAttributes(3LIB)
SMHBA_GetAdapterPortAttributes(3LIB)
SMHBA_GetBindingCapability(3LIB)
SMHBA_GetDiscoveredPortAttributes(3LIB)
SMHBA_GetFCPhyAttributes(3LIB)
SMHBA_GetPersistentBinding(3LIB)
SMHBA_GetPortAttributesByWWN(3LIB)
SMHBA_GetProtocolStatistics(3LIB)
SMHBA_GetSASPhyAttributes(3LIB)
SMHBA_GetVendorLibraryAttributes(3LIB)
SMHBA_GetWrapperLibraryAttributes(3LIB)
SMHBA_RegisterForAdapterAddEvents(3LIB)
SMHBA_RegisterForAdapterEvents(3LIB)
SMHBA_RegisterForAdapterPhyStatEvents(3LIB)
SMHBA_RegisterForAdapterPortEvents(3LIB)
SMHBA_RegisterForAdapterPortStatEvents(3LIB)
SMHBA_RegisterForTargetEvents(3LIB)
SMHBA_RemoveAllPersistentBindings(3LIB)
SMHBA_RemovePersistentBinding(3LIB)
- STREAMS interface (STREAMS)
#include <stropts.h>
The <stropts.h> header defines thebandinfo structure, which includes the following members:
unsigned char bi_pri /* priority band */int bi_flag /* flushing type */
The <stropts.h> header defines thestrpeek structure that includes the following members:
struct strbuf ctlbuf /* control portion of the message */struct strbuf databuf /* data portion of the message */t_uscalar_t flags /* RS_HIPRI or 0 */
The <stropts.h> header defines thestrbuf structure that includes the following members:
int maxlen /* maximum buffer length */int len /* length of data */char *buf /* pointer to buffer */
The <stropts.h> header defines thestrfdinsert structure that includes the following members:
struct strbuf ctlbuf /* control portion of the message */struct strbuf databuf /* data portion of the message */t_uscalar_t flags /* RS_HIPRI or 0 */int fildes /* file descriptor of the other stream */int offset /* relative location of the stored value */
The <stropts.h> header defines thestrioctl structure that includes the following members:
int ic_cmd /* ioctl() command */int ic_timout /* timeout for response */int ic_len /* length of data */char *ic_dp /* pointer to buffer */
The <stropts.h> header defines thestrrecvfd structure that includes the following members:
int fda /* received file descriptor */uid_t uid /* UID of sender */gid_t gid /* GID of sender */
Theuid_t andgid_t types are defined throughtypedef as described in<sys/types.h>. Seetypes.h(3HEAD).
The <stropts.h> header defines thet_scalar_t andt_uscalar_t types, respectively, as signedand unsigned opaque types of equal length of at least 32 bits.
The <stropts.h> header defines thestr_list structure that includes the following members:
int sl_nmods /* number of STREAMS module names */struct str_mlist *sl_modlist /* STREAMS module names */
The <stropts.h> header defines thestr_mlist structure that includes the following member:
a STREAMS module name
The following macros are defined for use as the request argument toioctl():
Push a STREAMS module.
Pop a STREAMS module.
Get the top module name.
Flush a stream.
Flush one band of a stream.
Ask for notification signals.
Retrieve current notification signals.
Look for a STREAMS module.
Peek at the top message on a stream.
Set the read mode.
Get the read mode.
Size the top message.
Send implementation-defined information about another stream.
Send a STREAMSioctl().
Set the write mode.
Get the write mode.
Pass a file descriptor through a STREAMS pipe.
Get a file descriptor sent via I_SENDFD.
Get all the module names on a stream.
Is the top message ``marked''?
See if any messages exist in a band.
Get the band of the top message on a stream.
Is a band writable?
Set close time delay.
Get close time delay.
Connect two streams.
Disconnect two streams.
Persistently connect two streams.
Dismantle a persistent STREAMS link.
The following macro is defined for use withI_LOOK:
minimum size in bytes of the buffer referred to by thearg argument
The following macros are defined for use withI_FLUSH:
flush read queues
flush write queues
flush read and write queues
The following macros are defined for use withI_SETSIG:
A normal (priority band set to 0) message has arrived at the head of a stream head read queue.
A message with a non-zero priority band has arrived at the head of a stream head read queue.
A message, other than a high-priority message, has arrived at the head of a stream head read queue.
A high-priority message is present on a stream head read queue.
The write queue for normal data (priority band 0) just below the stream head is no longer full. This notifies the process that there is room on the queue for sending (or writing) normal data downstream.
Equivalent toS_OUTPUT.
The write queue for a non-zero priority band just below the stream head is no longer full.
A STREAMS signal message that contains theSIGPOLL signal reaches the front of the stream head read queue.
Notification of an error condition reaches the stream head.
Notification of a hangup reaches the stream head.
When used in conjunction withS_RDBAND,SIGURG is generated instead ofSIGPOLL when a priority message reaches the front of the stream head read queue.
The following macro is defined for use withI_PEEK:
Only look for high-priority messages.
The following macros are defined for use withI_SRDOPT:
Byte-stream mode, the default.
Message-discard mode.
Message-non-discard mode.
Failread() with[EBADMSG] if a message containing a control part is at the front of the stream head read queue.
Deliver the control part of a message as data when a process issues aread()
Discard the control part of a message, delivering any data part, when a process issues aread()
The following macro is defined for use withI_SWOPT:
Send a zero-length message downstream when awrite() of 0 bytes occurs.
The following macros are defined for use withI_ATMARK:
Check if the message is marked.
Check if the message is the last one marked on the queue.
The following macro is defined for use withI_UNLINK:
Unlink all stream linked to the stream associated withfildes.
The following macros are defined forgetmsg(),getpmsg(),putmsg(), andputpmsg():
Receive any message.
Receive message from specified band.
Send/receive high-priority message.
More control information is left in message.
More data is left in message.
The <stropts.h> header can make visible all of the symbols from <unistd.h>.
Seeattributes(5) for descriptions of the following attributes:
|
close(2),fcntl(2),getmsg(2),ioctl(2),open(2),pipe(2),poll(2),putmsg(2),read(2),write(2),signal(3C),types.h(3HEAD),unistd.h(3HEAD),attributes(5),standards(5)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |