acpm_get_by_node(9)
β¨ acpm_get_by_node(9) β¨
okay so bestie, welcome to the Kernel API Manual, section 9 β yes we're in the big-kid kernel-functions section, put some respect on it π
this page is literally all about acpm_get_by_node, and it's giving "small function, big job" energy fr fr.
πΈ NAME πΈ
acpm_get_by_node β get the ACPM handle using node pointer. that's it, that's the whole vibe: you hand it a node pointer, it hands you a handle π«Ά
π¦ SYNOPSIS π¦
struct acpm_handle * acpm_get_by_node (struct device *dev , struct device_node *np );
look at that signature, iconic, no notes π
π ARGUMENTS π
devβ device pointer requesting the ACPM handle. it's the one doing the asking, main character energy honestly πnpβ the ACPM device tree node. the node in question, the one we're keying off of πΈ
β RETURN β
pointer to the handle on success π and ERR_PTR(-errno) otherwise π β so yeah, do the IS_ERR() check, bestie, don't just raw-dog the pointer, i'm begging π
π NOTE π
the handle CANNOT be pointer to const. like, cannot. not "shouldn't", not "maybe don't" β CANNOT. so don't go slapping const on it and acting surprised when things go sideways, ngl that's on you π
π₯ SEE ALSO π₯
kernel file ./drivers/firmware/samsung/exynos-acpm.c β that's the source of truth, go read it, iykyk π and then the whole friend group:
struct acpm_shmem(9)struct acpm_chan_shmem(9)struct acpm_queue(9)struct acpm_rx_data(9)struct acpm_chan(9)struct acpm_info(9)struct acpm_match_data(9)acpm_get_saved_rx(9)acpm_get_rx(9)acpm_dequeue_by_polling(9)acpm_wait_for_queue_slots(9)acpm_prepare_xfer(9)acpm_wait_for_message_response(9)acpm_do_xfer(9)acpm_set_xfer(9)acpm_chan_shmem_get_params(9)acpm_achan_alloc_cmds(9)acpm_free_mbox_chans(9)acpm_channels_init(9)acpm_handle_put(9)devm_acpm_release(9)devm_acpm_get_by_node(9)devm_acpm_get_by_phandle(9)
that's the whole squad, all (9), all slaying in their own way π
okay that's the page!! π this lil beauty lives in ./drivers/firmware/samsung, stamped October 2026, and it's brought to you by the acpm_get_by_node(9) page of the Kernel API Manual β mwah, go get that handle bestie, and remember: check for ERR_PTR πβ¨π§
π¦ 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