Documentation ¶
Index ¶
- type File
- func (f *File) Close() error
- func (f *File) Datasync() error
- func (f *File) Fd() uintptr
- func (f *File) Name() string
- func (f *File) ReadAt(buf []byte, off int64) (int, error)
- func (f *File) ReadAtFixed(b *fixed.Buffer, off int64) (int, error)
- func (f *File) Sync() error
- func (f *File) WriteAt(buf []byte, off int64) (int, error)
- func (f *File) WriteAtFixed(b *fixed.Buffer, off int64) (int, error)
- type FileRegistry
- type Filesystem
- type FilesystemOption
- type Write
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File ...
func (*File) ReadAtFixed ¶
ReadAtFixed ...
func (*File) WriteAtFixed ¶
WriteAtFixed ... FIXME(dshulyak) write after canceled write will hang see https://github.com/axboe/liburing/issues/179
type FileRegistry ¶
type FileRegistry interface { RegisterFiles([]int32) error UnregisterFiles() error UpdateFiles([]int32, uint32) error }
FileRegistry ...
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
Filesystem is a facade for all fs-related functionality.
func NewFilesystem ¶
func NewFilesystem(lp *loop.Loop, opts ...FilesystemOption) *Filesystem
NewFilesystem returns facade for interacting with uring-based filesystem functionality.
type FilesystemOption ¶
type FilesystemOption func(*Filesystem)
FilesystemOption ...
func RegisterFiles ¶
func RegisterFiles(n int) FilesystemOption
RegisterFiles enables file registration in uring when file is opened. n is a hint to for fds slice allocation. When fds slice needs to grow registration module will have to perform two unixs (unregister files, register files).
Click to show internal directories.
Click to hide internal directories.