ReleaseHandle docs and types.
parent
f306589a4e
commit
3e9e5fe09d
|
@ -28,9 +28,6 @@ type FileSystem interface {
|
||||||
|
|
||||||
// Forget an inode ID previously issued (e.g. by LookUpInode). The kernel
|
// Forget an inode ID previously issued (e.g. by LookUpInode). The kernel
|
||||||
// calls this when removing an inode from its internal caches.
|
// calls this when removing an inode from its internal caches.
|
||||||
//
|
|
||||||
// The kernel guarantees that the node ID will not be used in further calls
|
|
||||||
// to the file system (unless it is reissued by the file system).
|
|
||||||
ForgetInode(
|
ForgetInode(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
req *ForgetInodeRequest) (*ForgetInodeResponse, error)
|
req *ForgetInodeRequest) (*ForgetInodeResponse, error)
|
||||||
|
@ -42,7 +39,12 @@ type FileSystem interface {
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
req *OpenDirRequest) (*OpenDirResponse, error)
|
req *OpenDirRequest) (*OpenDirResponse, error)
|
||||||
|
|
||||||
// XXX: Comments
|
// Release a previously-minted handle. The kernel calls this when there are
|
||||||
|
// no more references to an open file: all file descriptors are closed and
|
||||||
|
// all memory mappings are unmapped.
|
||||||
|
//
|
||||||
|
// The kernel guarantees that the handle ID will not be used in further calls
|
||||||
|
// to the file system (unless it is reissued by the file system).
|
||||||
ReleaseHandle(
|
ReleaseHandle(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
req *ReleaseHandleRequest) (*ReleaseHandleResponse, error)
|
req *ReleaseHandleRequest) (*ReleaseHandleResponse, error)
|
||||||
|
@ -212,3 +214,13 @@ type OpenDirResponse struct {
|
||||||
// ReleaseHandle.
|
// ReleaseHandle.
|
||||||
Handle HandleID
|
Handle HandleID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ReleaseHandleRequest struct {
|
||||||
|
// The handle ID to be released. The kernel guarantees that this ID will not
|
||||||
|
// be used in further calls to the file system (unless it is reissued by the
|
||||||
|
// file system).
|
||||||
|
Handle HandleID
|
||||||
|
}
|
||||||
|
|
||||||
|
type ReleaseHandleResponse struct {
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue