iucv_msg_length(9)
๐ 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 tostruct 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 ๐ฅ
- Kernel file
./net/iucv/af_iucv.c iucv_sock_in_state(9)iucv_below_msglim(9)iucv_send_iprm(9)
mwah ๐ โ signing off from the ./net/iucv source/version, dated October 2026, bestie ๐
๐ฆ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms