NodeDeviceReAttach is the go wrapper for REMOTE_PROC_NODE_DEVICE_RE_ATTACH.
(Name string)
| 7985 | |
| 7986 | // NodeDeviceReAttach is the go wrapper for REMOTE_PROC_NODE_DEVICE_RE_ATTACH. |
| 7987 | func (l *Libvirt) NodeDeviceReAttach(Name string) (err error) { |
| 7988 | var buf []byte |
| 7989 | |
| 7990 | args := NodeDeviceReAttachArgs { |
| 7991 | Name: Name, |
| 7992 | } |
| 7993 | |
| 7994 | buf, err = encode(&args) |
| 7995 | if err != nil { |
| 7996 | return |
| 7997 | } |
| 7998 | |
| 7999 | |
| 8000 | _, err = l.requestStream(119, constants.Program, buf, nil, nil) |
| 8001 | if err != nil { |
| 8002 | return |
| 8003 | } |
| 8004 | |
| 8005 | return |
| 8006 | } |
| 8007 | |
| 8008 | // NodeDeviceReset is the go wrapper for REMOTE_PROC_NODE_DEVICE_RESET. |
| 8009 | func (l *Libvirt) NodeDeviceReset(Name string) (err error) { |
nothing calls this directly
no test coverage detected