X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Finclude%2Fvfs_ext.h;h=99a64e3be3c897581e15441d27908fb36d141475;hb=3c3c26b58055f511af5b7f0c3ab22e83961c775f;hp=65a81624d1df05a5a23ee9609b253cc1edf9f26b;hpb=9fb3c9f3a8eaaacefc5e01718b2c88512a153e75;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/include/vfs_ext.h b/KernelLand/Kernel/include/vfs_ext.h index 65a81624..99a64e3b 100644 --- a/KernelLand/Kernel/include/vfs_ext.h +++ b/KernelLand/Kernel/include/vfs_ext.h @@ -226,6 +226,20 @@ extern int VFS_DuplicateFD(int SrcFD, int DstFD); */ extern int VFS_SetFDFlags(int FD, int Mask, int Value); +/** + * \brief Save specified file handle such that it can be passed between processes + * \param FD File descriptor to save + * \return Marshalled handle, or (uint64_t)-1 on error + */ +extern Uint64 VFS_MarshalHandle(int FD); + +/** + * \brief Restore a marshalled handle into the current process + * \param Handle returned by VFS_MarshalHandle + * \return File descriptor, or -1 on error + */ +extern int VFS_UnmarshalHandle(Uint64 Handle); + /** * \brief Get file information from an open file * \param FD File handle returned by ::VFS_Open