Lines Matching +full:sync +full:- +full:2
2 Sync File API Guide
8 sync_file API is, and how drivers can support it. Sync file is the carrier of
20 signals that the buffer is ready to use. And vice-versa for the consumer ->
23 Sync files allows userspace awareness on buffer sharing synchronization between
26 Sync file was originally added in the Android kernel but current Linux Desktop
29 in-fences and out-fences
30 ------------------------
32 Sync files can go either to or from userspace. When a sync_file is sent from
33 the driver to userspace we call the fences it contains 'out-fences'. They are
35 the driver creates an out-fence to be able to notify, through
37 Out-fences are fences that the driver creates.
40 userspace we call these fence(s) 'in-fences'. Receiving in-fences means that
42 the in-fences.
44 Creating Sync Files
45 -------------------
47 When a driver needs to send an out-fence userspace it creates a sync_file.
53 The caller pass the out-fence and gets back the sync_file. That is just the
54 first step, next it needs to install an fd on sync_file->file. So it gets an
59 and installs it on sync_file->file::
61 fd_install(fd, sync_file->file);
66 other reason fput(sync_file->file) should be used.
68 Receiving Sync Files from Userspace
69 -----------------------------------
71 When userspace needs to send an in-fence to the driver it passes file descriptor
72 of the Sync File to the kernel. The kernel can then retrieve the fences
86 2. All interfaces mentioned above defined in include/linux/sync_file.h