DomainSetMaxMemory is the go wrapper for REMOTE_PROC_DOMAIN_SET_MAX_MEMORY.
(Dom Domain, Memory uint64)
| 5271 | |
| 5272 | // DomainSetMaxMemory is the go wrapper for REMOTE_PROC_DOMAIN_SET_MAX_MEMORY. |
| 5273 | func (l *Libvirt) DomainSetMaxMemory(Dom Domain, Memory uint64) (err error) { |
| 5274 | var buf []byte |
| 5275 | |
| 5276 | args := DomainSetMaxMemoryArgs { |
| 5277 | Dom: Dom, |
| 5278 | Memory: Memory, |
| 5279 | } |
| 5280 | |
| 5281 | buf, err = encode(&args) |
| 5282 | if err != nil { |
| 5283 | return |
| 5284 | } |
| 5285 | |
| 5286 | |
| 5287 | _, err = l.requestStream(30, constants.Program, buf, nil, nil) |
| 5288 | if err != nil { |
| 5289 | return |
| 5290 | } |
| 5291 | |
| 5292 | return |
| 5293 | } |
| 5294 | |
| 5295 | // DomainSetMemory is the go wrapper for REMOTE_PROC_DOMAIN_SET_MEMORY. |
| 5296 | func (l *Libvirt) DomainSetMemory(Dom Domain, Memory uint64) (err error) { |
nothing calls this directly
no test coverage detected