IXPFID(3)

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

πŸ¦‹ NAME πŸ¦‹

IxpFid β€” okay so this is the iconic open-file struct from the Library Functions Manual for libixp, section 3. Bestie, if you're doing 9P stuff, this is the little data bundle you'll be passing around. πŸ’…


✨ SYNOPSIS ✨

Here's the exact shape, no cap:

#include <ixp.h>

typedef struct IxpFid IxpFid;
struct IxpFid {
        char*           uid;    /* The uid of the file opener. */
        void*           aux;    /* Arbitrary pointer, to be used by handlers. */
        uint32_t                fid;    /* The ID number of the fid. */
        IxpQid          qid;    /* The filesystem-unique QID of the file. */
        signed char     omode;  /* The open mode of the file. */
        uint            iounit; /* The maximum size of any IO request. */

        /* Private members */
        ...
}

🌸 DESCRIPTION 🌸

Okay so picture this: IxpFid represents an open file for a 9P connection. ✨ The same structure persists as long as the file remains open, and it gets installed in the Ixp9Req(3) structure for any request Fcall which references it. 🫢

Handlers may use the aux member to store any data which must persist for the life of the open file. That's the whole vibe: open file, persistent struct, aux doing its little aux things. πŸ’–


πŸŽ€ SEE ALSO πŸŽ€

Go read these next, bestie:


catch you later, bestie β€” this manual page is from the libixp Manual, dated 2012 Dec, and it's filed under IXPFID(3). πŸ’œπŸ¦‹

πŸ“¦ where this page comes from