uclogic_params_pen_init_v2(9)
π NAME π
Bestie, welcome to the uclogic_params_pen_init_v2(9) glow-up, straight from the Kernel API Manual π
β¨ This is the function that initializes tablet interface pen input and retrieves its parameters from the device, using v2 protocol.
β¨ SYNOPSIS β¨
int uclogic_params_pen_init_v2 (struct uclogic_params_pen *pen , bool
*pfound , __u8 **pparams_ptr , size_t *pparams_len , struct hid_device
*hdev );
π ARGUMENTS π
penβ Pointer to the pen parameters you're initializing (and later cleaning up withuclogic_params_pen_cleanup). It is not modified if there's an error, or if the parameters aren't found. Cannot be NULL. π«Άpfoundβ Where you stash the flag:trueif the parameters were found,falseif not (e.g. the device was incompatible). It's not modified on error. Cannot be NULL. π¦pparams_ptrβ Location for akmalloc'edpointer to the retrieved raw parameters, which could be used to identify the tablet to some extent. Should be freed withkfreeafter use.NULL, if not needed. Not modified on error. Only set if*pfoundis set totrue. πΈpparams_lenβ Location for the length of the retrieved raw parameters.NULL, if not needed. Not modified on error. Only set if*pfoundis set totrue. πhdevβ The HID device of the tablet interface to initialize and get parameters from. Cannot be NULL. π₯
π¦ RETURN π¦
Zero if successful. A negative errno code on error. That's it, bestie β no extra plot twists π
π SEE ALSO π
Kernel file: ./drivers/hid/hid-uclogic-params.c
The whole bestie clique to pull up:
uclogic_params_pen_inrange_to_str(9)uclogic_params_pen_hid_dbg(9)uclogic_params_frame_hid_dbg(9)uclogic_params_hid_dbg(9)uclogic_params_get_str_desc(9)uclogic_params_pen_cleanup(9)uclogic_params_pen_init_v1(9)uclogic_params_get_le24(9)uclogic_params_frame_cleanup(9)uclogic_params_frame_init_with_desc(9)uclogic_params_frame_init_v1(9)uclogic_params_cleanup_event_hooks(9)uclogic_params_cleanup(9)uclogic_params_get_desc(9)uclogic_params_init_invalid(9)uclogic_params_init_with_opt_desc(9)uclogic_params_huion_init(9)uclogic_probe_interface(9)uclogic_params_parse_ugee_v2_desc(9)uclogic_params_ugee_v2_init_frame_buttons(9)uclogic_params_ugee_v2_init_frame_dial(9)uclogic_params_ugee_v2_init_frame_mouse(9)uclogic_params_ugee_v2_has_battery(9)uclogic_params_ugee_v2_init_battery(9)uclogic_params_ugee_v2_reconnect_work(9)uclogic_params_ugee_v2_init_event_hooks(9)uclogic_params_ugee_v2_init(9)uclogic_params_init(9)
Okay bye bestie, go be iconic ππ«Ά source/version: ./drivers/hid; date: October 2026; manual page: uclogic_params_pen_init_v2(9).
π¦ 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