cros_ec_get_time_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so welcome to the cros_ec_get_time_ns(9) page from the Kernel API Manual β€” she's short, she's iconic, and she's literally just here to hand you a timestamp πŸ’…βœ¨

🌸 NAME 🌸

cros_ec_get_time_ns β€” Return time in ns. πŸ•°οΈ

πŸŽ€ SYNOPSIS πŸŽ€

ktime_t cros_ec_get_time_ns (void );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • void β€” no arguments. bestie said "none" and meant it, no cap 🫢

πŸ’… DESCRIPTION πŸ’…

This is the function used to record the time for last_event_time in struct cros_ec_device during the hard irq. like, she's the one doing the timestamping in the hard irq, periodt πŸ”₯

🌸 RETURN 🌸

Returns a ktime_t format since boot. so it's giving "time since boot," not "time since lunch," iykyk ⭐

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/linux/platform_data/cros_ec_proto.h β€” plus struct cros_ec_command(9), struct cros_ec_device(9), struct cros_ec_platform(9), and struct cros_ec_dev(9) πŸ¦‹πŸ’œ

signing off from ./include/linux/platform_data β€” October 2026 β€” on the cros_ec_get_time_ns(9) page πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from