Documentation ¶
Index ¶
- type Space
- func (s *Space) Add(start address.Address, size address.Offset)
- func (s *Space) AddRanges(ranges []address.Range)
- func (s *Space) Allocate(r address.Range) (bool, address.Address)
- func (s *Space) Claim(addr address.Address) error
- func (s *Space) Clear()
- func (s *Space) Donate(r address.Range) (address.Range, bool)
- func (s *Space) Free(addr address.Address) error
- func (s *Space) NumFreeAddressesInRange(r address.Range) address.Offset
- func (s *Space) OwnedRanges() []address.Range
- func (s *Space) String() string
- func (s *Space) UpdateRanges(ranges []address.Range)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Space ¶
type Space struct {
// contains filtered or unexported fields
}
func (*Space) Clear ¶
func (s *Space) Clear()
Clear removes all spaces from this space set. Used during node shutdown.
func (*Space) NumFreeAddressesInRange ¶
func (*Space) OwnedRanges ¶
OwnedRanges returns slice of Ranges, ordered by IP, gluing together contiguous sequences of owned and free addresses
func (*Space) UpdateRanges ¶
Taking ranges to be a set of all space we should own, add in any excess as free space
Click to show internal directories.
Click to hide internal directories.