max9271_clear_gpios(9)
π max9271_clear_gpios(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to the Kernel API Manual π and today's main character is max9271_clear_gpios, which is like... literally just "make these GPIO lines go physically low". That's the whole vibe. no cap.
β¨ NAME β¨
max9271_clear_gpios β set gpio lines to physical low value π«Ά
πΈ SYNOPSIS πΈ
int max9271_clear_gpios (struct max9271_device *dev , u8 gpio_mask );
π¦ ARGUMENTS π¦
devβ the max9271 device π like, the actual chip you're talking to, she's the momentgpio_maskβ the mask of gpio lines to set to low value β¨ this is you picking which lines get the low treatment
π DESCRIPTION π
okay so the gpio_mask parameter shall be assembled using the MAX9271_GP[IO|O]* bit values. that's not optional, that's the assignment π like, that's the only way you should be building that mask, iykyk.
and then, the way this function works is: return 0 on success or a negative error code on failure. that's it. that's the tea β if you get a 0, she ate. if you get a negative error code, something went sideways π
lowkey important: it's a physical low value on the lines, fr fr β not just "eh we set a flag somewhere". the real deal π
π SEE ALSO π
bestie you are NOT ready for this friend group, they're all iconic:
- Kernel file
./drivers/media/i2c/max9271.hπ struct max9271_device(9)max9271_wake_up(9)max9271_set_serial_link(9)max9271_configure_i2c(9)max9271_set_high_threshold(9)max9271_configure_gmsl_link(9)max9271_set_gpios(9)max9271_enable_gpios(9)max9271_disable_gpios(9)max9271_verify_id(9)max9271_set_address(9)max9271_set_deserializer_address(9)max9271_set_translation(9)
and that's the page, bestie!! π§β¨ this lil guy lives in ./drivers/media/i2c and the version/date on the tin is October 2026 β so go forth, clear those gpios, and 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