Page MenuHomeFreeBSD

bhyvectl: reduce code duplication
ClosedPublic

Authored by rew on Feb 23 2021, 1:49 AM.
Tags
None
Referenced Files
F131533649: D28878.diff
Thu, Oct 9, 12:40 AM
Unknown Object (File)
Mon, Oct 6, 11:23 PM
Unknown Object (File)
Tue, Sep 30, 9:16 AM
Unknown Object (File)
Sun, Sep 21, 9:04 AM
Unknown Object (File)
Aug 26 2025, 9:54 PM
Unknown Object (File)
Aug 15 2025, 12:54 AM
Unknown Object (File)
Aug 14 2025, 3:50 PM
Unknown Object (File)
Aug 3 2025, 8:46 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