STRUCT SCMI_ITERATOR_STATE(9)
π struct scmi_iterator_state π
okay so bestie, welcome to the Kernel API Manual, section 9 β yes, the (9) is right there in the title, iykyk. This page is all about the iterator current state descriptor, and ngl it is giving βsmall struct, big main character energy.β π
β¨ NAME β¨
struct scmi_iterator_state β iterator current state descriptor. periodt. π
π¦ SYNOPSIS π¦
struct scmi_iterator_state {
unsigned int desc_index;
unsigned int num_returned;
unsigned int num_remaining;
unsigned int max_resources;
unsigned int loop_idx;
size_t rx_len;
void *priv;
};
π Members π
desc_indexβ starting index for the current multi-part request. like, this is where the current request kicks off, bestie. π―num_returnedβ number of returned items in the last multi-part reply. count βem. π’num_remainingβ number of remaining items in the multi-part message. the leftovers, basically. πmax_resourcesβ maximum acceptable number of items, configured by the caller depending on the underlying resources that it is querying. so the caller sets the cap based on what resources are actually in play. πloop_idxβ the iterator loop index in the current multi-part reply. yes, the loop index β iconic. πrx_lenβ size in bytes of the currently processed message; it can be used by the user of the iterator to verify a reply size. so yeah, reply-size verification is right there. πprivβ optional pointer to some additional state-related private data setup by the caller during the iterations. optional, so no pressure. π«Ά
π SEE ALSO π
Kernel file ./drivers/firmware/arm_scmi/protocols.h has the struct, and the whole squad is:
struct scmi_msg_resp_prot_version(9)struct scmi_msg(9)struct scmi_msg_hdr(9)struct scmi_xfer(9)struct scmi_protocol_handle(9)struct scmi_iterator_ops(9)struct scmi_proto_helpers_ops(9)struct scmi_xfer_ops(9)struct scmi_protocol(9)
π source/version + date sign-off: pulled from./drivers/firmware/arm_scmi, dated October 2026, and the page is literallystruct scmi_iterator_state(9). mwah, go read the header 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