Documentation
¶
Overview ¶
Copyright 2021 Intel Corporation.
SPDX-License-Identifier: Apache-2.0
Index ¶
- type Bus
- type Context
- type Dimm
- type Mapping
- type Namespace
- func (ns *Namespace) Active() bool
- func (ns *Namespace) BlockDeviceName() string
- func (ns *Namespace) DeviceName() string
- func (ns *Namespace) Disable() error
- func (ns *Namespace) Enable() error
- func (ns *Namespace) Enabled() bool
- func (ns *Namespace) ID() uint
- func (ns *Namespace) Location() ndctl.MapLocation
- func (ns *Namespace) Mode() ndctl.NamespaceMode
- func (ns *Namespace) Name() string
- func (ns *Namespace) RawSize() uint64
- func (ns *Namespace) Region() ndctl.Region
- func (ns *Namespace) SetAltName(name string) error
- func (ns *Namespace) SetEnforceMode(mode ndctl.NamespaceMode) error
- func (ns *Namespace) SetPfnSeed(loc ndctl.MapLocation, align uint64) error
- func (ns *Namespace) SetRawMode(raw bool) error
- func (ns *Namespace) SetSectorSize(sectorSize uint64) error
- func (ns *Namespace) SetSize(size uint64) error
- func (ns *Namespace) SetUUID(uid uuid.UUID) error
- func (ns *Namespace) Size() uint64
- func (ns *Namespace) Type() ndctl.NamespaceType
- func (ns *Namespace) UUID() uuid.UUID
- type Region
- func (r *Region) ActiveNamespaces() []ndctl.Namespace
- func (r *Region) AllNamespaces() []ndctl.Namespace
- func (r *Region) AvailableSize() uint64
- func (r *Region) Bus() ndctl.Bus
- func (r *Region) CreateNamespace(ctx context.Context, opts ndctl.CreateNamespaceOpts) (ndctl.Namespace, error)
- func (r *Region) DestroyNamespace(ns ndctl.Namespace, force bool) error
- func (r *Region) DeviceName() string
- func (r *Region) Enabled() bool
- func (r *Region) FsdaxAlignment() uint64
- func (r *Region) GetAlign() uint64
- func (r *Region) ID() uint
- func (r *Region) InterleaveWays() uint64
- func (r *Region) Mappings() []ndctl.Mapping
- func (r *Region) MaxAvailableExtent() uint64
- func (r *Region) Readonly() bool
- func (r *Region) SeedNamespace() ndctl.Namespace
- func (r *Region) Size() uint64
- func (r *Region) Type() ndctl.RegionType
- func (r *Region) TypeName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
func (*Bus) ActiveRegions ¶
func (*Bus) AllRegions ¶
func (*Bus) DeviceName ¶
func (*Bus) GetRegionByPhysicalAddress ¶
type Context ¶
func NewContext ¶
NewContext initializes the cross-references between items.
type Dimm ¶
type Dimm struct {
Enabled_ bool
Active_ bool
ID_ string
PhysicalID_ int
DeviceName_ string
Handle_ int16
}
func (*Dimm) DeviceName ¶
func (*Dimm) PhysicalID ¶
type Mapping ¶
type Namespace ¶
type Namespace struct {
ID_ uint
Name_ string
DeviceName_ string
BlockDeviceName_ string
Size_ uint64
Overhead_ uint64
Mode_ ndctl.NamespaceMode
Type_ ndctl.NamespaceType
Enabled_ bool
Active_ bool
UUID_ uuid.UUID
Location_ ndctl.MapLocation
Region_ ndctl.Region
}
func (*Namespace) BlockDeviceName ¶
func (*Namespace) DeviceName ¶
func (*Namespace) Location ¶
func (ns *Namespace) Location() ndctl.MapLocation
func (*Namespace) Mode ¶
func (ns *Namespace) Mode() ndctl.NamespaceMode
func (*Namespace) SetAltName ¶
func (*Namespace) SetEnforceMode ¶
func (ns *Namespace) SetEnforceMode(mode ndctl.NamespaceMode) error
func (*Namespace) SetPfnSeed ¶
func (ns *Namespace) SetPfnSeed(loc ndctl.MapLocation, align uint64) error
func (*Namespace) SetRawMode ¶
func (*Namespace) SetSectorSize ¶
func (*Namespace) Type ¶
func (ns *Namespace) Type() ndctl.NamespaceType
type Region ¶
type Region struct {
ID_ uint
DeviceName_ string
Size_ uint64
AvailableSize_ uint64
MaxAvailableExtent_ uint64
Type_ ndctl.RegionType
TypeName_ string
Enabled_ bool
Readonly_ bool
InterleaveWays_ uint64
RegionAlign_ uint64
Mappings_ []ndctl.Mapping
Namespaces_ []ndctl.Namespace
Bus_ ndctl.Bus
}
func (*Region) ActiveNamespaces ¶
func (*Region) AllNamespaces ¶
func (*Region) AvailableSize ¶
func (*Region) CreateNamespace ¶
func (*Region) DestroyNamespace ¶
func (*Region) DeviceName ¶
func (*Region) FsdaxAlignment ¶
func (*Region) InterleaveWays ¶
func (*Region) MaxAvailableExtent ¶
func (*Region) SeedNamespace ¶
func (*Region) Type ¶
func (r *Region) Type() ndctl.RegionType
Click to show internal directories.
Click to hide internal directories.