Page MenuHomeFreeBSD

bhyvectl: reduce code duplication
ClosedPublic

Authored by rew on Feb 23 2021, 1:49 AM.
Tags
None
Referenced Files
F114858671: D28878.id84512.diff
Thu, Apr 17, 7:00 PM
Unknown Object (File)
Mon, Apr 14, 11:39 AM
Unknown Object (File)
Mon, Apr 14, 6:58 AM
Unknown Object (File)
Sun, Apr 13, 11:48 PM
Unknown Object (File)
Sun, Apr 13, 11:34 PM
Unknown Object (File)
Sat, Apr 12, 11:45 PM
Unknown Object (File)
Wed, Apr 2, 10:48 PM
Unknown Object (File)
Mar 9 2025, 9:22 AM

Details

Summary

Combine send_start_checkpoint() and send_start_suspend() into a
single function named snapshot_request().

snapshot_request is equivalent to send_start_checkpoint and
send_start_suspend except that it takes an additional argument. The
additional argument, enum ipc_opcode, is used to determine the type of
snapshot request being performed. Also, switch to using strlcpy instead
of strncpy.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable