NVME_INIT_SET_FEATURES_TIMESTAMP-LIBNVME3(2)
π nvme_init_set_features_timestamp(9) β libnvme API manual
okay bestie, gather round, because we're diving into the libnvme API manual and this one is genuinely such a little icon. it's nvme_init_set_features_timestamp, and yes the name is a mouthful but she serves. β¨
π NAME π
nvme_init_set_features_timestamp β initializes the passthru command for Timestamp. that's it, that's the whole gig. no cap. π«Ά
β¨ SYNOPSIS β¨
void nvme_init_set_features_timestamp (struct libnvme_passthru_cmd *cmd
, bool sv , __u64 tstmp , struct nvme_timestamp *ts );
look at her. four args, one void, zero drama. copy it exactly, bestie, don't get creative with the signatures, that's how you end up crying at 3am. π
π ARGUMENTS π
cmdβ the passthru command you're gonna use. this is the vessel, the main character, the thing that gets filled in. π«svβ Save value across power states. it's abool, so it's giving yes/no energy. lowkey important, ngl.tstmpβ the current timestamp value you're assigning to this feature. it's a__u64, so she's a big girl. π₯tsβ Timestamp data buffer β and here's the tea, this one gets populated by this function. you hand it over empty and she fills it in. iconic behavior honestly. π
πΈ DESCRIPTION πΈ
so what does she do? she initializes the passthru command buffer for the Set Features command, with FID value NVME_FEAT_FID_TIMESTAMP. periodt.
the important bit, and bestie I need you to actually hear me on this one: the caller must provide a valid buffer via ts, because this function is gonna populate it. if you pass garbage, you get garbage β that's not a vibe check you want to fail. π
β οΈ real talk: ts must be a valid buffer. the function populates it, so it's not optional and it's not decorative. you've been warned, love you. π
π¦ SEE ALSO π¦
there's nothing extra listed here bestie, this page is just her and her four arguments living her best life. π
alright, that's the whole page! this masterpiece is from the libnvme API manual, dated October 2026 β shoutout to the libnvme girlies for keeping the docs cute. go populate that buffer, you absolute legend. πππ
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms