jz4780_nemc_assert(9)
π 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β aboolthat 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 π₯
- The kernel file
./drivers/memory/jz4780-nemc.cβ go read the source bestie, it's right there jz4780_nemc_num_banks(9)β the one that tells you how many banks existjz4780_nemc_set_type(9)β the one that sets the type
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
- 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