mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Add NewEmtpySocketMask() call to TopologyManager socketmask abstraction
This commit is contained in:
@@ -39,6 +39,12 @@ type SocketMask interface {
|
||||
|
||||
type socketMask uint64
|
||||
|
||||
//NewEmptySocketMask creates a new, empty SocketMask
|
||||
func NewEmptySocketMask() SocketMask {
|
||||
s := socketMask(0)
|
||||
return &s
|
||||
}
|
||||
|
||||
//NewSocketMask creates a new SocketMask
|
||||
func NewSocketMask(sockets ...int) (SocketMask, error) {
|
||||
s := socketMask(0)
|
||||
|
Reference in New Issue
Block a user