sync_timeline_create(9)
π sync_timeline_create(9) π
okay so bestie, welcome to the Kernel API Manual β yes we're in kernel land, yes it's giving big-brain energy, and no you don't have to be scared. this page is literally just about one little function, and by the end you're gonna know it like the back of your hand. periodt. π
β¨ NAME β¨
sync_timeline_create β creates a sync object π
like... that's it. that's the whole job. it makes a sync object. iconic behaviour honestly.
π¦ SYNOPSIS π¦
struct sync_timeline * sync_timeline_create (const char *name );
no cap, that's the exact signature β struct sync_timeline * out front, const char *name going in. copy it character for character, don't be out here free-styling it. π
πΈ ARGUMENTS πΈ
nameβ thesync_timelinename π like, the name of yoursync_timeline. groundbreaking, i know. it's aconst char *and it's what you're calling this thing. slay.
π DESCRIPTION π
so what does it actually do? it creates a new sync_timeline. that's the whole vibe. β¨
it returns the sync_timeline object β and if something goes wrong? you get NULL back. that's your error case, bestie. NULL. not a cute little error code, not a fun struct, just NULL. so please check for it, i'm begging π«Ά
lowkey important:NULLin case of error means you gotta handle it. the function is not gonna hold your hand, she's just gonna hand you aNULLand walk away π
π SEE ALSO π
- Kernel file
./drivers/dma-buf/sw_sync.cstruct sw_sync_get_deadline(9),sync_timeline_signal(9),sync_pt_create(9)π§
go read those next, they're all in the same friend group i promise π
and that's the page, bestie!! mwah π this one shipped out from ./drivers/dma-buf back in October 2026 β so yeah, mark your calendar, she's got a date and everything πβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms