IXPFID(3)
π¦ 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
- nixos 26.05: libixp 0-unstable-2022-04-04
- nixpkgs unstable: libixp 0-unstable-2022-04-04
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms