input_get_new_minor(9)
okay bestie, welcome to input_get_new_minor(9) β this one is straight from the Kernel API Manual, and itβs giving βkernel internals but make it cuteβ energy β¨π
π NAME π
input_get_new_minor β allocates a new input minor number π¦
β¨ SYNOPSIS β¨
int input_get_new_minor (int legacy_base , unsigned int legacy_num ,
bool allow_dynamic );
π ARGUMENTS π
legacy_baseβ beginning of the legacy range to be searched πlegacy_numβ size of legacy range πallow_dynamicβ whether we can also take ID from the dynamic range π
π₯ DESCRIPTION π₯
This function allocates a new device minor from the input major namespace β¨. The caller can request a legacy minor by specifying legacy_base and legacy_num parameters, and can also specify whether an ID can be allocated from the dynamic range if there are no free IDs in the legacy range. Thatβs the whole vibe β legacy range first, dynamic range as the backup plan, no cap π
π¦ SEE ALSO π¦
Kernel file ./drivers/input/input.c β yes, thatβs the source-file reference, and then the whole input crew is here, iykyk:
input_event(9)input_inject_event(9)input_alloc_absinfo(9)input_copy_abs(9)input_grab_device(9)input_release_device(9)input_open_device(9)input_close_device(9)input_scancode_to_scalar(9)input_default_setkeycode(9)input_get_keycode(9)input_set_keycode(9)input_reset_device(9)input_allocate_device(9)devm_input_allocate_device(9)input_free_device(9)input_set_timestamp(9)input_get_timestamp(9)input_set_capability(9)input_enable_softrepeat(9)input_register_device(9)input_unregister_device(9)input_register_handler(9)input_unregister_handler(9)input_handler_for_each_handle(9)input_register_handle(9)input_unregister_handle(9)input_free_minor(9)
okay thatβs a wrap, bestie π«Ά β source/path: ./drivers/input, date: October 2026, page: input_get_new_minor(9). go forth and understand those minors, slay πβ¨
π¦ 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