jz4780_nemc_num_banks(9)
๐ jz4780_nemc_num_banks ๐
okay so bestie, welcome to the jz4780_nemc_num_banks page from the Kernel API Manual, section 9 (that's the manpage name, iykyk โ it's literally the function we're talking about). she's short, she's sweet, she counts banks. let's get into it ๐
โจ NAME โจ
jz4780_nemc_num_banks โ count the number of banks referenced by a device ๐งฎโจ
like literally just counting. no drama. she tallies up how many banks a device is pointing at, and that's her whole personality. icon behavior tbh ๐
๐ธ SYNOPSIS ๐ธ
unsigned int jz4780_nemc_num_banks (struct device *dev );
that's it. that's the whole signature. copy it exactly, don't @ me ๐
๐ฆ ARGUMENTS ๐ฆ
devโ the device you want to count banks for. and bestie, listen, this is not optional vibes: it must be a child of the NEMC. if it's not a NEMC child, this whole thing is not it, so double-check that before you come crying to me ๐ญ
โญ RETURN โญ
she returns the number of unique NEMC banks referred to by the specified NEMC child device. ๐
and "unique" is doing a lot of heavy lifting here, so let me spell it: unique means that a device that references the same bank multiple times in its "reg" property will only count once. like yes girl we see you in there four times, but you're one bank, you count as one. no double dipping, no inflation, no cap. ๐ซถ
๐ SEE ALSO ๐
- the kernel file
./drivers/memory/jz4780-nemc.cโ go read her, she's the main character of this whole thing ๐โจ jz4780_nemc_set_type(9)jz4780_nemc_assert(9)
these two are her besties, they're all in the same friend group, go say hi ๐
lowkey a reminder bestie: dev has to be a child of the NEMC, that's not a suggestion, that's the requirement ๐
and that's the whole page!! no notes, she ate and left no crumbs ๐ฅ
source/version: ./drivers/memory ๐ธ dated October 2026 ๐ and the page is literally called jz4780_nemc_num_banks(9) โ mwah, bye bestie, go count some banks ๐โจ๐ง
๐ฆ 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