MCPcopy Create free account
hub / github.com/subtrace/subtrace / newInode

Function newInode

cmd/run/socket/inode.go:116–124  ·  view source on GitHub ↗
(domain int, number uint64, state *ImmutableState)

Source from the content-addressed store, hash-verified

114}
115
116func newInode(domain int, number uint64, state *ImmutableState) *Inode {
117 if state == nil {
118 panic(fmt.Errorf("new inode: %d: missing state", number))
119 }
120
121 ino := &Inode{Domain: domain, Number: number, state: new(atomic.Pointer[ImmutableState])}
122 ino.state.Store(state)
123 return ino
124}
125
126func (ino *Inode) LogValue() slog.Value {
127 var state string

Callers 2

CreateSocketFunction · 0.85
AcceptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected