cros_ec_pd_get_num_ports(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to cros_ec_pd_get_num_ports(9) from the Kernel API Manual πŸ’– this is the function that gets the number of EC charge ports β€” literally just the port count, no cap. It's giving β€œquick headcount for your charge ports” and I'm obsessed ✨

✨ SYNOPSIS ✨

the whole vibe is:

int cros_ec_pd_get_num_ports (struct cros_ec_extcon_info *info );

πŸŽ€ ARGUMENTS πŸŽ€

  • info β€” a pointer to struct cros_ec_extcon_info. that's the one and only argument, bestie 🫢

πŸ”₯ RETURN πŸ”₯

on success you get the number of ports 🌈 and on failure you get <0 😭 keep it cute, keep it checked.

πŸ‘‘ SEE ALSO πŸ‘‘

those are the related manual pages, iykyk πŸ‘‘


mwah πŸ’… this page is signed off from the ./drivers/extcon source/version corner, dated October 2026, and it's still cros_ec_pd_get_num_ports(9) β€” periodt πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from