parse_OID(9)
π NAME β parse_OID(9) π
okay so bestie, this is from the Kernel API Manual, and parse_OID is literally here to parse an OID from a bytestream. slay. β¨
π SYNOPSIS π
int parse_OID (const void *data , size_t datasize , enum OID *oid );
πΈ ARGUMENTS πΈ
dataβ the binary representation of the header + OID, iconic input vibes πdatasizeβ the size of that binary representation, gotta know the size bestieoidβ pointer tooidwhere the result gets returned π«Ά
β¨ DESCRIPTION β¨
So parse_OID parses an OID from a bytestream that holds the OID in the format ASN1_OID | length | oid. no cap.
The length indicator must equal to datasize - 2. like, that's the rule.
If the bytestream is too short, -EBADMSG is returned. π that's the whole warning, bestie.
ngl, short bytestream = -EBADMSG return. periodt.
π¦ SEE ALSO π¦
- Kernel file
./lib/oid_registry.c look_up_OID(9)
π and that's the vibe check: source/version is ./lib, date is October 2026. byeee bestie, go parse something cute π«Άπ
π
π¦ 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