nanddev_pos_cmp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nanddev_pos_cmp(9) β€” from the Kernel API Manual, bestie

Okay so picture this: you're deep in the kernel, you've got two NAND positions, and you need to know which one comes first. That's literally the whole vibe of nanddev_pos_cmp(9). Let's go ✨


🌸 NAME 🌸

nanddev_pos_cmp β€” compare two NAND positions. That's it. That's the function. She's simple, she's iconic, she does one thing and she ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int nanddev_pos_cmp (const struct nand_pos *a , const struct nand_pos *b
);

πŸŽ€ ARGUMENTS πŸŽ€

  • a β€” the first NAND position. contestant number one πŸ‘‘
  • b β€” the second NAND position. contestant number two 🫢

⭐ DESCRIPTION ⭐

So like, the whole function compares two NAND positions. That's the tea. No cap, that's genuinely all it does β€” you hand her two positions and she tells you how they stack up. main character energy fr fr πŸ”₯


🌈 RETURN 🌈

She returns, in order:

  • -1 if a < b
  • 0 if a == b
  • 1 if a > b

Like a little leaderboard. Periodt. πŸ’–


πŸ’œ SEE ALSO πŸ’œ

The kernel file lives at ./include/linux/mtd/nand.h and honestly the whole extended friend group shows up here β€” every single one of these, no skips:

iykyk, the whole NAND section of the kernel is lowkey a friend group and every single one of them is listed above. don't skip any, bestie 🧚

That's the page! This one's from ./include/linux/mtd, dated October 2026 β€” so like, noted and timestamped, slay πŸ“βœ¨ bye bestie, go compare some positions πŸ’–

πŸ“¦ where this page comes from