iucv_msg_length(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐ŸŽ€ iucv_msg_length(9) ๐ŸŽ€

okay bestie, welcome to the Kernel API Manual, section 9 โ€” this one is short but lowkey important ๐Ÿ’…

๐Ÿ’– NAME ๐Ÿ’–

iucv_msg_length โ€” returns the length of an iucv message.

โœจ SYNOPSIS โœจ

size_t iucv_msg_length (struct iucv_message *msg );

๐Ÿซถ ARGUMENTS ๐Ÿซถ

  • msg โ€” pointer to struct iucv_message; MUST NOT be NULL ๐Ÿ™…โ€โ™€๏ธ

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

This function returns the length of the specified iucv message msg โ€” of the data stored in a buffer and of the data stored in the parameter list (PRMDATA) โœจ

For IUCV_IPRMDATA, AF_IUCV uses the following convention to transport socket data:

PRMDATA[0..6]   socket data (max 7 bytes); PRMDATA[7] socket data length value (len is 0xff - PRMDATA[7])

The socket data length is computed by subtracting the socket data length value from 0xFF ๐Ÿงฎ

If the socket data len is greater than 7, then PRMDATA can be used for special notifications (see iucv_sock_shutdown); and further, if the socket data len is > 7, the function returns 8 ๐Ÿ”ฅ

Use this function to allocate socket buffers to store iucv message data โ€” that's the whole point, bestie ๐Ÿซถ

๐ŸŒˆ RETURN ๐ŸŒˆ

Length of the IUCV message. periodt ๐Ÿ’…

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ


mwah ๐Ÿ’– โ€” signing off from the ./net/iucv source/version, dated October 2026, bestie ๐ŸŽ€

๐Ÿ“ฆ where this page comes from