nx842_OF_upd_maxsglen(9)
π nx842_OF_upd_maxsglen β like, the kernel API manual page, bestie
okay so this is nx842_OF_upd_maxsglen(9) from the Kernel API Manual and honestly? it's giving "tiny function, big responsibility." it reads the ibm,max-sg-len property out of the device tree and updates your device info with it. slay. let's get into it π
β¨ NAME β¨
nx842_OF_upd_maxsglen β no cap, this is the one that updates the device info from the OF maxsglen prop π
πΈ SYNOPSIS πΈ
int nx842_OF_upd_maxsglen (struct nx842_devdata *devdata , struct property *prop );
π¦ ARGUMENTS π¦
devdataβ thestruct nx842_devdatayou're updating, bestie. that's the one getting the glow-up β¨propβ astruct propertypoint (pt β it's a pointer, i'm keeping the typo energy, that's literally what the page says π) containing themaxsyncopfor the update
π DESCRIPTION π
so here's the definition of the 'ibm,max-sg-len' OF property, and it's actually important so listen up π«Ά:
this field indicates the maximum byte length of a scatter list for the platform facility. it's a single cell encoded as with encode-int.
that's it. that's the whole vibe. one cell, one number, maximum byte length of a scatter list, encoded as with encode-int. iconic π
π EXAMPLE π
# od -x ibm,max-sg-len 0000000 0000 0ff0
in this example, the maximum byte length of a scatter list is 0x0ff0 (4,080). yes, four thousand and eighty. the math is mathing β¨π₯
π RETURN π
0β on success, we love to see it π-EINVALβ on failure, it's giving error, it's giving invalid argument π
π§ SEE ALSO π§
kernel file ./drivers/crypto/nx/nx-common-pseries.c β go read it, iykwim π
then the whole friend group:
nx842_pseries_compress(9)nx842_pseries_decompress(9)nx842_OF_set_defaults(9)nx842_OF_upd_status(9)nx842_OF_upd_maxsyncop(9)nx842_OF_upd(9)nx842_OF_notifier(9)
all of them. no skips. the whole squad π«Άπ
and that's the page, bestie π this little baddie lives in ./drivers/crypto/nx and the manual's dated October 2026 β periodt, go forth and scatter-list responsibly πΈππ¦
π¦ 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