| 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)
- signal generation information
#include <siginfo.h>
If a process is catching a signal, it might request informationthat tells why the system generated that signal. Seesigaction(2). Ifa process is monitoring its children, it might receive information that tells whya child changed state. Seewaitid(2). In either case, the systemreturns the information in a structure of typesiginfo_t, which includes thefollowing information:
int si_signo /* signal number */int si_errno /* error number */int si_code /* signal code */union sigval si_value /* signal value */
si_signo contains the system-generated signal number. For thewaitid(2) function,si_signo is alwaysSIGCHLD.
Ifsi_errno is non-zero, it contains an error number associated withthis signal, as defined in<errno.h>.
si_code contains a code identifying the cause of the signal.
If the value of thesi_code member isSI_NOINFO, onlythesi_signo member ofsiginfo_t is meaningful, and the value ofall other members is unspecified.
If the value ofsi_code is less than or equal to0, then the signal was generated by a user process (seekill(2),_lwp_kill(2),sigqueue(3C),sigsend(2),abort(3C), andraise(3C)) and thesiginfo structurecontains the following additional information:
pid_t si_pid /* sending process ID */uid_t si_uid /* sending user ID */ctid_t si_ctid /* sending contract ID */zoneid_t si_zoneid /* sending zone ID */S
If the signal was generated by a user process, the following valuesare defined forsi_code:
The implementation setssi_code toSI_USER if the signal was sent bykill(2),sigsend(2),raise(3C) orabort(3C).
The signal was sent by_lwp_kill(2).
The signal was sent bysigqueue(3C).
The signal was generated by the expiration of a timer created bytimer_settime(3C).
The signal was generated by the completion of an asynchronous I/O request.
The signal was generated by the arrival of a message on an empty message queue. Seemq_notify(3C).
si_value contains the application specified value, which is passed to the application'ssignal-catching function at the time of the signal delivery ifsi_codeis any ofSI_QUEUE,SI_TIMER,SI_ASYNCHIO, orSI_MESGQ.
Non-user generated signals can arise for a number of reasons. For allof these cases,si_code contains a positive value reflecting the reason whythe system generated the signal:
|
Signals can also be generated from the resource control subsystem. Where thesesignals do not already possess kernel-levelsiginfo codes, thesiginfosi_code willbe filled withSI_RCTL to indicate a kernel-generated signal from an established resourcecontrol value.
|
Signals sent with asiginfo code ofSI_RCTL contain code-dependent information forkernel-generated signals:
|
In addition, the following signal-dependent information is available for kernel-generated signals:
|
_lwp_kill(2),kill(2),setrctl(2),sigaction(2),sigsend(2),waitid(2),abort(3C),aio_read(3C),mq_notify(3C),raise(3C),signal.h(3HEAD),sigqueue(3C),timer_create(3C),timer_settime(3C)
ForSIGCHLD signals, ifsi_code is equal toCLD_EXITED,thensi_status is equal to the exit value of the process;otherwise, it is equal to the signal that caused the process to change state. For some implementations, the exact value ofsi_addr might notbe available; in that case,si_addr is guaranteed to be on thesame page as the faulting instruction or memory reference.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |