semihostfs

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Overview

Package semihostfs provieds access to files located on a debuging host. Debuger or emulator must support it.

Example QEMU semihosting options:

-serial none -semihosting --semihosting-config enable=on,target=native,userspace=on

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

An FS represents a semihosting file system.

func New

func New(name, rootDir string) *FS

func (*FS) Mkdir

func (fsys *FS) Mkdir(name string, mode fs.FileMode) error

Mkdir implements the optional rtos.FS method.

func (*FS) Name

func (fsys *FS) Name() string

Name implements the rtos.FS Name method.

func (*FS) Open

func (fsys *FS) Open(name string) (fs.File, error)

Open implements the fs.FS Open method.

func (*FS) OpenWithFinalizer

func (fsys *FS) OpenWithFinalizer(name string, flag int, mode fs.FileMode, closed func()) (fs.File, error)

OpenWithFinalizer implements the rtos.FS OpenWithFinalizer method.

func (*FS) Remove

func (fsys *FS) Remove(name string) error

Remove implements the optional rtos.FS method.

func (*FS) Rename

func (fsys *FS) Rename(oldname, newname string) error

Rename implements the optional rtos.FS method.

func (*FS) Type

func (fsys *FS) Type() string

Type implements the rtos.FS Type method.

func (*FS) Usage

func (fsys *FS) Usage() (usedItems, maxItems int, usedBytes, maxBytes int64)

Usage implements the rtos.FS Usage method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL