vme_get_size(9)
π vme_get_size β the lil helper that tells u how big ur VME window is
okay so bestie, welcome to vme_get_size(9) from the Kernel API Manual π this one's a short one but she's iconic in her ownδ½θ° way β literally the "just check the size for me please" friend of the VME subsystem.
β¨ SYNOPSIS β¨
size_t vme_get_size (struct vme_resource *resource );
that's it. that's the whole vibe. one arg in, one size out. slay.
πΈ ARGUMENTS πΈ
resourceβ a pointer to a VME slave or master resource. like, whichever one u got handed. she'll figure it out π«Ά
π¦ DESCRIPTION π¦
so what does she actually do? she determines the size of the VME window u provided. that's the whole job. no cap.
and here's the cute part β she's a helper function, meaning she's basically a wrapper π she just forwards the call to either vme_master_get or vme_slave_get, depending on what type of window resource u handed her. so like, she does the vibe check on ur resource and then delegates to the right icon. main character energy, honestly π
β RETURN β
- size of the window on success π
- zero on failure π (bestie... check ur resource, fr fr)
π₯ SEE ALSO π₯
these are the rest of the squad β go read them, iykw iykyk:
- Kernel file
./drivers/staging/vme_user/vme.c vme_alloc_consistent(9)vme_free_consistent(9)vme_slave_request(9)vme_slave_set(9)vme_slave_get(9)vme_slave_free(9)vme_master_request(9)vme_master_set(9)vme_master_get(9)vme_master_read(9)vme_master_write(9)vme_master_rmw(9)vme_master_mmap_prepare(9)vme_master_free(9)vme_dma_request(9)vme_new_dma_list(9)vme_dma_pattern_attribute(9)vme_dma_pci_attribute(9)vme_dma_vme_attribute(9)vme_dma_free_attribute(9)vme_dma_list_add(9)vme_dma_list_exec(9)vme_dma_list_free(9)vme_dma_free(9)vme_irq_request(9)vme_irq_free(9)vme_irq_generate(9)vme_lm_request(9)vme_lm_count(9)vme_lm_set(9)vme_lm_get(9)vme_lm_attach(9)vme_lm_detach(9)vme_lm_free(9)vme_slot_num(9)vme_bus_num(9)vme_register_driver(9)vme_unregister_driver(9)
π reminder bestie: she returns zero on failure, and zero is also a legit size in some contexts, so don't be out here assuming zero always means "everything's fine" without checking. the page just says size on success / zero on failure β that's the contract, periodt.
okay that's the whole page, ily, go read ur VME windows πβ¨
sign-off time: this lil beauty lives in ./drivers/staging/vme_user and the manual's dated October 2026 β mwah, bye π§π
π¦ 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