parman_create(9)
π parman_create(9) β like, the whole vibe
okay so bestie, sit down, we're talking about parman_create(9) from the Kernel API Manual β¨ this is the little function that births a brand-new parman instance, and honestly? iconic behavior.
πΈ NAME πΈ
parman_create β creates a new parman instance π«Ά
β¨ SYNOPSIS β¨
struct parman * parman_create (const struct parman_ops *ops , void *priv );
π ARGUMENTS π
opsβ the caller-specific callbacks. like, your callbacks, bestie, parman isn't gonna make them up for you πprivβ a pointer to private data that gets passed along to the ops. your little bag of secrets π
π₯ NOTE π₯
okay this is the important part so pay attention β all locking must be provided by the caller. no cap, parman is not doing that for you, that's a you problem π
Each parman instance manages an array area with chunks of entries that all share the same priority. it's giving organized, honestly. consider the following example:
item 1 with prio 10
item 2 with prio 10
item 3 with prio 10
item 4 with prio 20
item 5 with prio 20
item 6 with prio 30
item 7 with prio 30
item 8 with prio 30
so in this example there are 3 priority chunks π§ the order of the priorities matters, but the order of items within a single priority chunk does not matter. so the same array could totally be ordered like this instead:
item 2 with prio 10
item 3 with prio 10
item 1 with prio 10
item 5 with prio 20
item 4 with prio 20
item 7 with prio 30
item 8 with prio 30
item 6 with prio 30
see how it's the same? the vibes are preserved πβ¨
The goal of parman is to maintain the priority ordering. the caller provides ops with callbacks that parman uses to move the items and resize the array area. that's the whole deal π¦
Returns a pointer to the newly created parman instance in case of success β otherwise it returns NULL. so like, check it, bestie π
β οΈ heads up: success gives you a pointer, failure gives youNULL. don't go dereferencing theNULL, that's not the vibe.
π SEE ALSO π
Kernel file ./lib/parman.c
and that's the whole page, bestie π this lil drop came from ./lib, dated October 2026 β catch you in the next manpage, mwah ππ«Άβ¨
π¦ 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