try_toggle_control_gpio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

try_toggle_control_gpio(9) ✨

okay bestie, welcome to the Kernel API Manual entry for try_toggle_control_gpio β€” the function whose whole vibe is β€œconfigure a gpio if it exists.” πŸ’…


🌸 NAME 🌸

try_toggle_control_gpio β€” configure a gpio if it exists πŸŽ€


✨ SYNOPSIS ✨

int try_toggle_control_gpio (struct device *dev , struct gpio_desc **desc , const char *name , int index , int value , unsigned int nsdelay );

🫢 ARGUMENTS 🫢

  • dev β€” net device 🫢
  • desc β€” where to store the GPIO descriptor, if it exists ✨
  • name β€” name of the GPIO in DT πŸŽ€
  • index β€” index of the GPIO in DT πŸ”₯
  • value β€” set the GPIO to this value πŸ’–
  • nsdelay β€” delay before setting the GPIO ⏳

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./drivers/net/ethernet/smsc/smc91x.c β€” also peep smc_phy_reset(9), smc_phy_powerdown(9), and smc_phy_check_media(9) πŸ¦‹


xoxo, your try_toggle_control_gpio(9) bestie πŸ’œ β€” source/version: ./drivers/net/ethernet/smsc, dated October 2026 🌈

πŸ“¦ where this page comes from