ibmvmc_count_hmc_buffers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ibmvmc_count_hmc_buffers πŸ’–

okay bestie, so we're deep in the Kernel API Manual today and the function we're stanning is ibmvmc_count_hmc_buffers β€” like, this is section 9 territory, driver-land, the place where the real ones live 🧚✨


✨ NAME ✨

ibmvmc_count_hmc_buffers β€” literally just counts HMC buffers, that's the whole gig, no cap πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

void ibmvmc_count_hmc_buffers (u8 hmc_index , unsigned int *valid ,
       unsigned int *free );

she returns void btw β€” no return value, she's not giving you anything back, the info goes out through the pointers, iykyk πŸ’…


🌸 ARGUMENTS 🌸

  • hmc_index β€” the HMC Index field πŸŽ€ that's your "which HMC are we talking about" number.
  • valid β€” the Valid number of buffers field ✨ pointer city, she writes the valid count in here.
  • free β€” the Free number of buffers field 🫢 another pointer, this one gets the free count.
fr fr, valid and free are both unsigned int * so like… bring real storage, don't hand her a NULL, that's not the vibe 😭

πŸ’œ SEE ALSO πŸ’œ

okay this is the part where the manpage goes full main-character and lists her entire friend group πŸ˜­πŸ’€ every single one of these, no skipping:

Kernel file ./drivers/misc/ibmvmc.c, h_request_vmc(9), ibmvmc_handle_event(9), ibmvmc_release_crq_queue(9), ibmvmc_reset_crq_queue(9), crq_queue_next_crq(9), ibmvmc_send_crq(9), alloc_dma_buffer(9), free_dma_buffer(9), ibmvmc_get_valid_hmc_buffer(9), ibmvmc_get_free_hmc_buffer(9), ibmvmc_free_hmc_buffer(9), ibmvmc_get_free_hmc(9), ibmvmc_return_hmc(9), ibmvmc_send_open(9), ibmvmc_send_close(9), ibmvmc_send_capabilities(9), ibmvmc_send_add_buffer_resp(9), ibmvmc_send_rem_buffer_resp(9), ibmvmc_send_msg(9), ibmvmc_open(9), ibmvmc_close(9), ibmvmc_read(9), ibmvmc_poll(9), ibmvmc_write(9), ibmvmc_setup_hmc(9), ibmvmc_ioctl_sethmcid(9), ibmvmc_ioctl_query(9), ibmvmc_ioctl_requestvmc(9), ibmvmc_ioctl(9), ibmvmc_add_buffer(9), ibmvmc_rem_buffer(9), ibmvmc_process_capabilities(9), ibmvmc_validate_hmc_session(9), ibmvmc_reset(9), ibmvmc_reset_task(9), ibmvmc_process_open_resp(9), ibmvmc_process_close_resp(9), ibmvmc_crq_process(9), ibmvmc_handle_crq_init(9), ibmvmc_handle_crq(9), ibmvmc_init_crq_queue(9)

like… that's the whole group chat and every single one of them ate πŸ”₯


and that's the page, bestie πŸŽ€ this lil icon lives over in ./drivers/misc and she's stamped October 2026 β€” go forth and count those buffers, you're gonna slay πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from