Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark C ABI structs with structs.HostLayout #10693

Open
EtiennePerot opened this issue Jul 25, 2024 · 0 comments
Open

Mark C ABI structs with structs.HostLayout #10693

EtiennePerot opened this issue Jul 25, 2024 · 0 comments
Labels
type: enhancement New feature or request

Comments

@EtiennePerot
Copy link
Contributor

EtiennePerot commented Jul 25, 2024

Description

Go 1.23 has a new structs.HostLayout thing to explicitly mark that a struct relies on a C-like field layout: https://pkg.go.dev/[email protected]#HostLayout

Is this feature related to a specific bug?

No

Do you have a specific solution in mind?

We should add _ structs.HostLayout on all Linux ABI structs, and probably add a test that all structs in the ABI package have this annotation.

We should do the same for nvproxy structs.

@EtiennePerot EtiennePerot added the type: enhancement New feature or request label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant