include/uapi/linux/sctp.h
Source file repositories/reference/linux-study-clean/include/uapi/linux/sctp.h
File Facts
- System
- Linux kernel
- Corpus path
include/uapi/linux/sctp.h- Extension
.h- Size
- 36122 bytes
- Lines
- 1227
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/socket.h
Detected Declarations
struct sctp_initmsgstruct sctp_sndrcvinfostruct sctp_sndinfostruct sctp_rcvinfostruct sctp_nxtinfostruct sctp_prinfostruct sctp_authinfostruct sctp_assoc_changestruct sctp_paddr_changestruct sctp_remote_errorstruct sctp_send_failedstruct sctp_send_failed_eventstruct sctp_shutdown_eventstruct sctp_adaptation_eventstruct sctp_pdapi_eventstruct sctp_authkey_eventstruct sctp_sender_dry_eventstruct sctp_stream_reset_eventstruct sctp_assoc_reset_eventstruct sctp_stream_change_eventstruct sctp_event_subscribestruct sctp_rtoinfostruct sctp_assocparamsstruct sctp_setpeerprimstruct sctp_primstruct sctp_setadaptationstruct sctp_paddrparamsstruct sctp_authchunkstruct sctp_hmacalgostruct sctp_authkeystruct sctp_authkeyidstruct sctp_sack_infostruct sctp_assoc_valuestruct sctp_stream_valuestruct sctp_paddrinfostruct sctp_statusstruct sctp_authchunksstruct sctp_assoc_idsstruct sctp_getaddrs_oldstruct sctp_getaddrsstruct sctp_assoc_statsstruct sctp_paddrthldsstruct sctp_paddrthlds_v2struct sctp_prstatusstruct sctp_default_prinfostruct sctp_infostruct sctp_reset_streamsstruct sctp_add_streams
Annotated Snippet
struct sctp_initmsg {
__u16 sinit_num_ostreams;
__u16 sinit_max_instreams;
__u16 sinit_max_attempts;
__u16 sinit_max_init_timeo;
};
/* 5.3.2 SCTP Header Information Structure (SCTP_SNDRCV)
*
* This cmsghdr structure specifies SCTP options for sendmsg() and
* describes SCTP header information about a received message through
* recvmsg().
*
* cmsg_level cmsg_type cmsg_data[]
* ------------ ------------ ----------------------
* IPPROTO_SCTP SCTP_SNDRCV struct sctp_sndrcvinfo
*/
struct sctp_sndrcvinfo {
__u16 sinfo_stream;
__u16 sinfo_ssn;
__u16 sinfo_flags;
__u32 sinfo_ppid;
__u32 sinfo_context;
__u32 sinfo_timetolive;
__u32 sinfo_tsn;
__u32 sinfo_cumtsn;
sctp_assoc_t sinfo_assoc_id;
};
/* 5.3.4 SCTP Send Information Structure (SCTP_SNDINFO)
*
* This cmsghdr structure specifies SCTP options for sendmsg().
*
* cmsg_level cmsg_type cmsg_data[]
* ------------ ------------ -------------------
* IPPROTO_SCTP SCTP_SNDINFO struct sctp_sndinfo
*/
struct sctp_sndinfo {
__u16 snd_sid;
__u16 snd_flags;
__u32 snd_ppid;
__u32 snd_context;
sctp_assoc_t snd_assoc_id;
};
/* 5.3.5 SCTP Receive Information Structure (SCTP_RCVINFO)
*
* This cmsghdr structure describes SCTP receive information
* about a received message through recvmsg().
*
* cmsg_level cmsg_type cmsg_data[]
* ------------ ------------ -------------------
* IPPROTO_SCTP SCTP_RCVINFO struct sctp_rcvinfo
*/
struct sctp_rcvinfo {
__u16 rcv_sid;
__u16 rcv_ssn;
__u16 rcv_flags;
__u32 rcv_ppid;
__u32 rcv_tsn;
__u32 rcv_cumtsn;
__u32 rcv_context;
sctp_assoc_t rcv_assoc_id;
};
/* 5.3.6 SCTP Next Receive Information Structure (SCTP_NXTINFO)
*
* This cmsghdr structure describes SCTP receive information
* of the next message that will be delivered through recvmsg()
* if this information is already available when delivering
* the current message.
*
* cmsg_level cmsg_type cmsg_data[]
* ------------ ------------ -------------------
* IPPROTO_SCTP SCTP_NXTINFO struct sctp_nxtinfo
*/
struct sctp_nxtinfo {
__u16 nxt_sid;
__u16 nxt_flags;
__u32 nxt_ppid;
__u32 nxt_length;
sctp_assoc_t nxt_assoc_id;
};
/* 5.3.7 SCTP PR-SCTP Information Structure (SCTP_PRINFO)
*
* This cmsghdr structure specifies SCTP options for sendmsg().
*
* cmsg_level cmsg_type cmsg_data[]
* ------------ ------------ -------------------
Annotation
- Immediate include surface: `linux/types.h`, `linux/socket.h`.
- Detected declarations: `struct sctp_initmsg`, `struct sctp_sndrcvinfo`, `struct sctp_sndinfo`, `struct sctp_rcvinfo`, `struct sctp_nxtinfo`, `struct sctp_prinfo`, `struct sctp_authinfo`, `struct sctp_assoc_change`, `struct sctp_paddr_change`, `struct sctp_remote_error`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.