IXP_PFCALL(3)

πŸ“¦ version 0-unstable-2022-04, in nixos 26.05, nixpkgs unstable

πŸ’– ixp_pfcall, ixp_pqid, ixp_pqids, ixp_pstat, ixp_sizeof_stat πŸ’–

This is the IXP_PFCALL(3) page from the Library Functions Manual, bestie β€” and it's literally all about packing and unpacking libixp structs into wire format ✨


🌸 SYNOPSIS 🌸

#include <ixp.h>

void ixp_pfcall(IxpMsg *msg, IxpFcall *fcall);

void ixp_pqid(IxpMsg *msg, IxpQid *qid);

void ixp_pqids(IxpMsg *msg, uint16_t *num, IxpQid qid[], uint max);

void ixp_pstat(IxpMsg *msg, IxpStat *stat);

uint16_t ixp_sizeof_stat(IxpStat *stat);

✨ DESCRIPTION ✨

Okay so these are the convenience functions that pack or unpack the contents of libixp structures into their wire format πŸ’… They behave exactly as if ixp_pu8(3), ixp_pu16(3), ixp_pu32(3), ixp_pu64(3), and ixp_pstring(3) were called for each member of the structure in question. Same energy, just bundled up all cute and convenient πŸŽ€

And the page's own mapping moment is: ixp_pqid is to ixp_pqid as ixp_pstrings(3) is to ixp_pstring. Yes bestie β€” it's written with the same name on both sides, and we're preserving it exactly as it appears 🫢

ixp_sizeof_stat returns the size of the packed represention of stat ⭐


πŸ¦‹ SEE ALSO πŸ¦‹


Later, bestie β€” this one came from the libixp Manual, dated 2012 Dec 🫢✨

πŸ“¦ where this page comes from