switch_leds(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… switch_leds(9) β€” Kernel API Manual glow-up ✨

okay so bestie, welcome to the switch_leds(9) page β€” yes, that’s the title, and this is the Kernel API Manual moment. We’re doing this together, no cap. 🫢

🌸 NAME

switch_leds β€” switch the leds, go from one site to the other. πŸ’–

✨ SYNOPSIS

void switch_leds (struct controller *ctrl , const int num_of_slots , u32 *work_LED , const int direction );

πŸŽ€ ARGUMENTS

  • ctrl β€” controller to use. The main character of this little function call. πŸ‘‘
  • num_of_slots β€” number of slots to use. Literally how many slots we’re working with, bestie. πŸ”’
  • work_LED β€” LED control value. It’s the LED vibe knob, okay? πŸ’‘
  • direction β€” 1 to start from the left side, 0 to start right. Those are the direction values, periodt. 🧭

πŸ¦‹ SEE ALSO

Kernel file ./drivers/pci/hotplug/cpqphp_ctrl.c is the home base, and the whole friend group is: cpqhp_find_slot(9), sort_by_size(9), sort_by_max_size(9), do_pre_bridge_resource_split(9), do_bridge_resource_split(9), get_io_resource(9), get_max_resource(9), get_resource(9), cpqhp_resource_sort_and_combine(9), cpqhp_slot_create(9), slot_remove(9), bridge_slot_remove(9), cpqhp_slot_find(9), set_controller_speed(9), board_replaced(9), board_added(9), remove_board(9), cpqhp_pushbutton_thread(9), cpqhp_hardware_test(9), configure_new_device(9), configure_new_function(9). 🫢✨

okay bye bestie πŸ’– this iconic page comes from ./drivers/pci/hotplug, dated October 2026, and it’s literally the switch_leds(9) sign-off β€” slay. πŸŽ€

πŸ“¦ where this page comes from