jz4780_nemc_assert(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… jz4780_nemc_assert

okay so bestie, we're in the Kernel API Manual today and this one is short but iconic β€” it's the function that flips a NAND chip's chip enable pin on and off. literally that's the whole gig. no cap.


✨ NAME ✨

jz4780_nemc_assert β€” (de-)assert a NAND device's chip enable pin

like, it asserts it. or un-asserts it. the parentheses are doing a lot of work there and honestly slay.


πŸŽ€ SYNOPSIS πŸŽ€

void jz4780_nemc_assert (struct device *dev , unsigned int bank , bool assert );

that's the whole signature, copy it exactly, don't come for me about the spacing, that's just how it is πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the child device of the NEMC. yep, child device, it's giving "I'm not the parent, I'm the baby of this relationship" 🫢
  • bank β€” the bank number of the device. which bank are we talking to? this one. 🏦
  • assert β€” a bool that says whether the chip enable pin should be asserted. true = assert it, false = de-assert it. so simple, so clean, we love a boolean 😭

🌸 DESCRIPTION 🌸

(De-)asserts the chip enable pin for the NAND device connected to the specified bank.

that's it. that's the function. it goes and flips that chip enable pin for whichever NAND device is chilling on the bank you named. highkey one of those functions that just does exactly what it says on the tin, periodt πŸ’…


πŸ”₯ SEE ALSO πŸ”₯


ngl there are zero warnings on this page. no EINVAL jumpscares, no undefined behaviour lurking in the bushes. just a very normal very well-behaved function. we love to see it 🌈

and that's a wrap !! πŸŽ€ from the ./drivers/memory girlies, dated October 2026, with all the love in the world β€” bye bestie, go assert some chip enables πŸ’œβœ¨

πŸ“¦ where this page comes from