Skip to content

move internal/vmcompute out of internal#2825

Open
AkihiroSuda wants to merge 1 commit into
microsoft:mainfrom
AkihiroSuda:expose-vmcompute
Open

move internal/vmcompute out of internal#2825
AkihiroSuda wants to merge 1 commit into
microsoft:mainfrom
AkihiroSuda:expose-vmcompute

Conversation

@AkihiroSuda

@AkihiroSuda AkihiroSuda commented Jul 14, 2026

Copy link
Copy Markdown

Part of:


package vmcompute // import "github.com/Microsoft/hcsshim/pkg/vmcompute"


FUNCTIONS

func HcsCloseComputeSystem(ctx gcontext.Context, computeSystem HcsSystem) (hr error)
func HcsCloseProcess(ctx gcontext.Context, process HcsProcess) (hr error)
func HcsCreateComputeSystem(ctx gcontext.Context, id string, configuration string, identity syscall.Handle) (computeSystem HcsSystem, result string, hr error)
func HcsCreateProcess(ctx gcontext.Context, computeSystem HcsSystem, processParameters string) (processInformation HcsProcessInformation, process HcsProcess, result string, hr error)
func HcsEnumerateComputeSystems(ctx gcontext.Context, query string) (computeSystems, result string, hr error)
func HcsGetComputeSystemProperties(ctx gcontext.Context, computeSystem HcsSystem, propertyQuery string) (properties, result string, hr error)
func HcsGetProcessInfo(ctx gcontext.Context, process HcsProcess) (processInformation HcsProcessInformation, result string, hr error)
func HcsGetProcessProperties(ctx gcontext.Context, process HcsProcess) (processProperties, result string, hr error)
func HcsGetServiceProperties(ctx gcontext.Context, propertyQuery string) (properties, result string, hr error)
func HcsModifyComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, configuration string) (result string, hr error)
func HcsModifyProcess(ctx gcontext.Context, process HcsProcess, settings string) (result string, hr error)
func HcsModifyServiceSettings(ctx gcontext.Context, settings string) (result string, hr error)
func HcsOpenComputeSystem(ctx gcontext.Context, id string) (computeSystem HcsSystem, result string, hr error)
func HcsOpenProcess(ctx gcontext.Context, computeSystem HcsSystem, pid uint32) (process HcsProcess, result string, hr error)
func HcsPauseComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)
func HcsRegisterComputeSystemCallback(ctx gcontext.Context, computeSystem HcsSystem, callback uintptr, context uintptr) (callbackHandle HcsCallback, hr error)
func HcsRegisterProcessCallback(ctx gcontext.Context, process HcsProcess, callback uintptr, context uintptr) (callbackHandle HcsCallback, hr error)
func HcsResumeComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)
func HcsSaveComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)
func HcsShutdownComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)
func HcsSignalProcess(ctx gcontext.Context, process HcsProcess, options string) (result string, hr error)
func HcsStartComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)
func HcsTerminateComputeSystem(ctx gcontext.Context, computeSystem HcsSystem, options string) (result string, hr error)
func HcsTerminateProcess(ctx gcontext.Context, process HcsProcess) (result string, hr error)
func HcsUnregisterComputeSystemCallback(ctx gcontext.Context, callbackHandle HcsCallback) (hr error)
func HcsUnregisterProcessCallback(ctx gcontext.Context, callbackHandle HcsCallback) (hr error)

TYPES

type HcsCallback syscall.Handle
    HcsCallback is the handle associated with the function to call when events
    occur.

type HcsProcess syscall.Handle
    HcsProcess is the handle associated with a created process in a compute
    system.

type HcsProcessInformation struct {
        // ProcessId is the pid of the created process.
        ProcessId uint32

        // StdInput is the handle associated with the stdin of the process.
        StdInput syscall.Handle
        // StdOutput is the handle associated with the stdout of the process.
        StdOutput syscall.Handle
        // StdError is the handle associated with the stderr of the process.
        StdError syscall.Handle
        // Has unexported fields.
}
    HcsProcessInformation is the structure used when creating or getting process
    info.

type HcsSystem syscall.Handle
    HcsSystem is the handle associated with a created compute system.

@AkihiroSuda AkihiroSuda requested a review from a team as a code owner July 14, 2026 09:40
Part of issue 2823

Signed-off-by: Akihiro Suda <suda.kyoto@gmail.com>
@AkihiroSuda

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant