Skip to content

Avoid calls to (*os.File).Fd() when calling ioctl#215

Open
WeidiDeng wants to merge 3 commits into
creack:masterfrom
WeidiDeng:unsafe-pointer
Open

Avoid calls to (*os.File).Fd() when calling ioctl#215
WeidiDeng wants to merge 3 commits into
creack:masterfrom
WeidiDeng:unsafe-pointer

Conversation

@WeidiDeng
Copy link
Copy Markdown
Contributor

Like #214 , but use unsafe.Pointer as a parameter to avoid the use of reflect.

@WeidiDeng
Copy link
Copy Markdown
Contributor Author

@creack Do you have time to review this pr? I'd like to use the non blocking operation without manually calling syscall.SetNonblock.

@creack
Copy link
Copy Markdown
Owner

creack commented Mar 12, 2026

Will try to take a look over the weekend but may be the weekend after that.

@WeidiDeng
Copy link
Copy Markdown
Contributor Author

@creack Do you have time to review this pr?

@WeidiDeng
Copy link
Copy Markdown
Contributor Author

I think //go:uintptrescapes directive might need very few changes. Will test soon.

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.

2 participants