vme_alloc_consistent(9)
π vme_alloc_consistent(9) π
okay so welcome to the Kernel API Manual, bestie β this is the page for vme_alloc_consistent, and honestly? she's a little function with one job and she does it. slay.
β¨ NAME β¨
vme_alloc_consistent β allocate contiguous memory. that's it. that's the whole vibe. π
π¦ SYNOPSIS π¦
void * vme_alloc_consistent (struct vme_resource *resource , size_t size
, dma_addr_t *dma );
like, yes, that's the whole signature. three args, one pointer back. iconic.
πΈ ARGUMENTS πΈ
resourceβ pointer to a VME resource. you know, the thing you already got from somewhere. π«Άsizeβ the size of the allocation you need. how much memory. the amount. the quantity. πdmaβ pointer to a variable where the physical address of the allocation gets stored. she writes it for you, you're welcome. β¨
π DESCRIPTION π
okay so what she actually does: she allocates a contiguous block of memory for use by the driver. block is contiguous. that matters. contiguous. no cap. π₯
and why do you care? because this is the function used to create the buffers for the slave windows. that's the whole reason she exists. slave window buffers. periodt. π
β RETURN β
- virtual address of the allocation on success π
NULLon failure π
literally just check for NULL, bestie. it's giving "simple error handling" and we love that for us.
π SEE ALSO π
the kernel file lives at ./drivers/staging/vme_user/vme.c β and here is the entire friend group, no one left out, i checked twice π§:
vme_free_consistent(9)vme_get_size(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)
okay that's the page!! mwah π source is ./drivers/staging/vme_user, dated October 2026 β so like, future vibes, we stay ahead of the timeline. go allocate something contiguous, bestie, i believe in you ππβ¨
π¦ 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