qed_mcp_set_led(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qed_mcp_set_led β€” a Kernel API Manual moment (section 9, bestie)

okay so real quick before we dive in: this whole page lives in the Kernel API Manual, section 9. That's your "kernel functions, girl" section. Now let's get into it πŸŽ€


✨ NAME ✨

qed_mcp_set_led β€” literally just sets the LED status. That's it. That's the whole job. Iconic low-effort king πŸ‘‘


🌸 SYNOPSIS 🌸

int qed_mcp_set_led (struct qed_hwfn *p_hwfn , struct qed_ptt *p_ptt ,
enum qed_led_mode mode );

so you call it, you hand it three things, and you get an int back. simple as πŸ¦‹


πŸ’– ARGUMENTS πŸ’–

  • p_hwfn β€” the HW device data πŸ–₯️ your hardware-y struct, the main character of this call.
  • p_ptt β€” P_ptt. yes that's the actual name, no I'm not making it up πŸ’€ that's what you pass.
  • mode β€” the LED mode 🌈 like, which mode the LED should be in. you bring the vibe, it applies it.

⭐ RETURN ⭐

returns an int. and 0 means it went off without a single hitch β€” the original literally spells it "successul" and honestly? we love a typo with confidence 🫢 so: 0 = success, that's the one you want.

ngl, the page says 0 is a successful operation and does not list any other values β€” so don't go making up what the non-zero ones mean, bestie πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

the whole qed mcp friend group 🫢 it's a big group chat, but I'm showing you every single member, no gatekeeping:

qed_mcp_get_link_params(9), qed_mcp_get_link_state(9), qed_mcp_get_link_capabilities(9), qed_mcp_set_link(9), qed_mcp_get_mfw_ver(9), qed_mcp_get_mbi_ver(9), qed_mcp_get_media_type(9), qed_mcp_get_transceiver_data(9), qed_mcp_trans_speed_mask(9), qed_mcp_get_board_config(9), qed_mcp_cmd(9), qed_mcp_cmd_nosleep(9), qed_mcp_drain(9), qed_mcp_get_flash_size(9), qed_mcp_send_drv_version(9), qed_get_process_kill_counter(9), qed_start_recovery_process(9), qed_recovery_prolog(9), qed_mcp_ov_update_current_config(9), qed_mcp_ov_update_driver_state(9), qed_mcp_ov_update_mtu(9), qed_mcp_ov_update_mac(9), qed_mcp_ov_update_wol(9), qed_mcp_nvm_read(9), qed_mcp_nvm_write(9), qed_mcp_nvm_resp(9), qed_mcp_get_nvm_image_att(9), qed_mcp_get_nvm_image(9), qed_mcp_bist_register_test(9), qed_mcp_bist_clock_test(9), qed_mcp_bist_nvm_get_num_images(9), qed_mcp_bist_nvm_get_image_att(9), qed_mfw_process_tlv_req(9), qed_mcp_send_raw_debug_data(9), qed_mcp_is_ext_speed_supported(9), qed_mcp_cmd_init(9), qed_mcp_cmd_port_init(9), qed_mcp_free(9), qed_mcp_handle_events(9), qed_mcp_load_req(9), qed_mcp_load_done(9), qed_mcp_unload_req(9), qed_mcp_unload_done(9), qed_mcp_read_mb(9), qed_mcp_ack_vf_flr(9), qed_mcp_fill_shmem_func_info(9), qed_mcp_reset(9), qed_mcp_nvm_rd_cmd(9), qed_mcp_phy_sfp_read(9), qed_mcp_is_init(9), qed_mcp_config_vf_msix(9), qed_mcp_halt(9), qed_mcp_resume(9), qed_mcp_set_resc_max_val(9), qed_mcp_get_resc_info(9), qed_mcp_ov_update_eswitch(9), qed_mcp_initiate_pf_flr(9), qed_mcp_resc_lock(9), qed_mcp_resc_unlock(9), qed_mcp_resc_lock_default_init(9), qed_mcp_is_smart_an_supported(9), qed_mcp_get_capabilities(9), qed_mcp_set_capabilities(9), qed_mcp_read_ufp_config(9), qed_mcp_nvm_info_populate(9), qed_mcp_nvm_info_free(9), qed_mcp_get_engine_config(9), qed_mcp_get_ppfid_bitmap(9), qed_mcp_nvm_get_cfg(9), qed_mcp_nvm_set_cfg(9), qed_mcp_is_esl_supported(9), qed_mcp_get_esl_status(9)

also, the source file itself lives at:

./drivers/net/ethernet/qlogic/qed/qed_mcp.h

that's where all the lore is kept πŸ“š


and that's the whole page, bestie, you ate that πŸ’…βœ¨ the kernel file ./drivers/net/ethernet/qlogic/qed is the home base, this edition is dated October 2026, and it's all filed under qed_mcp_set_led(9) β€” go set some LEDs, you got this πŸ§šπŸ’œ

πŸ“¦ where this page comes from