uclogic_params_pen_init_v2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 with uclogic_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: true if the parameters were found, false if not (e.g. the device was incompatible). It's not modified on error. Cannot be NULL. πŸ¦‹
  • pparams_ptr β€” Location for a kmalloc'ed pointer to the retrieved raw parameters, which could be used to identify the tablet to some extent. Should be freed with kfree after use. NULL, if not needed. Not modified on error. Only set if *pfound is set to true. 🌸
  • pparams_len β€” Location for the length of the retrieved raw parameters. NULL, if not needed. Not modified on error. Only set if *pfound is set to true. πŸŽ€
  • 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:


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