onenand_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ onenand_lock(9) β€” Kernel API Manual, bestie edition ✨

okay so you opened the Kernel API Manual and landed on onenand_lock(9) β€” iconic. This page is short, cute, and very "lock the block(s), periodt." Let's get into it, no cap.

πŸŽ€ NAME πŸŽ€

onenand_lock - [MTD Interface] Lock block(s) πŸ’…

✨ SYNOPSIS ✨

int onenand_lock (struct mtd_info *mtd , loff_t ofs , uint64_t len );

πŸ’… ARGUMENTS πŸ’…

  • mtd β€” the MTD device structure. That's the device bestie, the whole MTD situation 🫢
  • ofs β€” offset relative to mtd start. So it's where you're starting from, relative to the MTD's beginning ✨
  • len β€” number of bytes to unlock. Yes, the page literally says unlock here, and we're keeping it exactly as written πŸ‘€

πŸ¦‹ DESCRIPTION πŸ¦‹

It does one thing and does it well: Lock one or more blocks. That's the description. One or more blocks get locked. No extra drama, no hidden subplot, just lock block(s) energy πŸ’…

🌸 SEE ALSO 🌸

Kernel file: ./drivers/mtd/nand/onenand/onenand_base.c β€” and honestly the whole onenand group chat is linked here, so here is every single bestie in order:


made with πŸ’– from ./drivers/mtd/nand/onenand, October 2026 β€” that's the source/version and date, bestie, and we're out πŸ¦‹βœ¨

πŸ“¦ where this page comes from