Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/digitalocean/go-smbios
/ functions
Functions
45 in github.com/digitalocean/go-smbios
⨍
Functions
45
◇
Types & classes
8
↓ 7 callers
Method
Close
()
smbios/decoder.go:231
↓ 6 callers
Method
Decode
Decode decodes Structures from the Decoder's stream until an End-of-table structure is found.
smbios/decoder.go:74
↓ 5 callers
Method
Table
Table returns the memory address and maximum size of the SMBIOS table.
smbios/entrypoint.go:42
↓ 5 callers
Method
Version
Version returns the system's SMBIOS version.
smbios/entrypoint.go:45
↓ 3 callers
Function
makeMemory
(before, in, after []byte)
smbios/stream_memory_test.go:166
↓ 3 callers
Function
nativeEndian
nativeEndian returns the native byte order of this system.
smbios/stream_windows.go:51
↓ 2 callers
Function
NewDecoder
NewDecoder creates a Decoder which decodes Structures from the input stream.
smbios/decoder.go:65
↓ 2 callers
Function
ParseEntryPoint
ParseEntryPoint parses an EntryPoint from the input stream.
smbios/entrypoint.go:49
↓ 2 callers
Function
checksum
checksum computes the checksum of b using the starting value of start, and skipping the checksum byte which occurs at index chkIndex. checksum assume
smbios/entrypoint.go:230
↓ 2 callers
Function
devMemStream
devMemStream reads the SMBIOS entry point and structure stream from the UNIX-like system /dev/mem device. This is UNIX-like system specific, but sinc
smbios/stream_memory.go:117
↓ 2 callers
Function
makeRawSMBIOSData
makeRawSMBIOSData creates a buffer with a valid RawSMBIOSData struct with the given version and stream information.
smbios/stream_windows_test.go:26
↓ 2 callers
Function
memoryStream
memoryStream reads the SMBIOS entry point and structure stream from an io.ReadSeeker (usually system memory). memoryStream is an entry point for test
smbios/stream_memory.go:40
↓ 2 callers
Function
windowsStream
windowsStream parses the data returned from GetSystemFirmwareTable('RSMB',...) and returns a stream and entrypoint that can be used to decode the syst
smbios/stream_windows.go:84
↓ 1 callers
Function
findEntryPoint
findEntryPoint attempts to locate the entry point structure in the io.ReadSeeker using the start and end bound as hints for its location.
smbios/stream_memory.go:76
↓ 1 callers
Function
fuzzDecoder
(data []byte)
smbios/fuzz.go:27
↓ 1 callers
Function
marshal64
(ep *EntryPoint64Bit)
smbios/stream_memory_test.go:186
↓ 1 callers
Function
mustMarshalEntryPoint
(ep EntryPoint)
smbios/stream_memory_test.go:176
↓ 1 callers
Method
next
next decodes the next Structure from the stream.
smbios/decoder.go:94
↓ 1 callers
Function
parse32
parse32 parses an EntryPoint32Bit from b.
smbios/entrypoint.go:102
↓ 1 callers
Function
parse64
parse64 parses an EntryPoint64Bit from b.
smbios/entrypoint.go:191
↓ 1 callers
Method
parseFormatted
parseFormatted parses a Structure's formatted data from the stream.
smbios/decoder.go:134
↓ 1 callers
Method
parseHeader
parseHeader parses a Structure's Header from the stream.
smbios/decoder.go:121
↓ 1 callers
Method
parseString
parseString parses a single string from the stream, and returns if any more strings are present.
smbios/decoder.go:191
↓ 1 callers
Method
parseStrings
parseStrings parses a Structure's strings from the stream, if they are present.
smbios/decoder.go:157
↓ 1 callers
Function
stream
stream opens the SMBIOS entry point and an SMBIOS structure stream.
smbios/stream_unix.go:27
↓ 1 callers
Function
sysfsStream
sysfsStream reads the SMBIOS entry point and structure stream from two files; usually the modern sysfs locations.
smbios/stream_linux.go:47
Function
Fuzz
(data []byte)
smbios/fuzz.go:23
Method
Read
(b []byte)
smbios/decoder.go:230
Function
Stream
Stream locates and opens a stream of SMBIOS data and the SMBIOS entry point from an operating system-specific location. The stream must be closed aft
smbios/decoder.go:49
Method
Table
Table implements EntryPoint.
smbios/entrypoint.go:92
Method
Table
Table implements EntryPoint.
smbios/entrypoint.go:172
Method
Table
Table implements EntryPoint. The returned address will always be 0, as it is not returned by GetSystemFirmwareTable.
smbios/entrypoint.go:260
Function
TestDecoder
(t *testing.T)
smbios/decoder_test.go:25
Function
TestParseEntryPoint
(t *testing.T)
smbios/entrypoint_test.go:25
Function
TestStreamIntegration
(t *testing.T)
smbios/stream_integration_test.go:25
Function
Test_memoryStream
(t *testing.T)
smbios/stream_memory_test.go:27
Function
Test_windowsStream
(t *testing.T)
smbios/stream_windows_test.go:37
Method
Version
Version implements EntryPoint.
smbios/entrypoint.go:97
Method
Version
Version implements EntryPoint.
smbios/entrypoint.go:177
Method
Version
Version implements EntryPoint.
smbios/entrypoint.go:265
Function
main
()
cmd/lssmbios/main.go:25
Function
main
()
cmd/lsdimms/main.go:26
Function
stream
stream opens the SMBIOS entry point and an SMBIOS structure stream.
smbios/stream_linux.go:31
Function
stream
stream is not implemented for unsupported platforms.
smbios/stream_others.go:26
Function
stream
()
smbios/stream_windows.go:109