STRUCT SYNC_MERGE_DATA(9)
π
struct sync_merge_data(9) β Kernel API Manual energy π
okay so welcome to the Kernel API Manual page for struct sync_merge_data(9) β we're doing fence merging and it's lowkey iconic. π¦
β¨ NAME β¨
struct sync_merge_data β SYNC_IOC_MERGE: merge two fences. That's the whole assignment, bestie. π
π SYNOPSIS π
struct sync_merge_data {
char name[32];
__s32 fd2;
__s32 fence;
__u32 flags;
__u32 pad;
};
π«Ά Members π«Ά
nameβ name of new fence. Naming rights: secured. πfd2β file descriptor of second fence. The other half of the merge. πfenceβ returns the fd of the new fence to userspace. Yes, it hands the new fence fd back to userspace. π«΄flagsβ merge_data flags. FLAGS. We love a flag field. β¨padβ padding for 64-bit alignment, should always be zero. Keep it zero, okay? That's the rule. π¨
πΈ Description πΈ
Creates a new fence containing copies of the sync_pts in both the calling fd and sync_merge_data.fd2. Returns the new fence's fd in sync_merge_data.fence. So it's literally making a new fence from both sides and giving you the fd back through the struct. No cap. π₯
π SEE ALSO π
- Kernel file
./include/uapi/linux/sync_file.h struct sync_fence_info(9)struct sync_file_info(9)struct sync_set_deadline(9)
This struct sync_merge_data(9) page comes from ./include/uapi/linux and is dated October 2026 β mwah, bye bestie, go merge those fences responsibly! ππ
π¦ 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