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

Add EPOLLWAKEUP to the select module #127481

Closed
rruuaanng opened this issue Dec 1, 2024 · 2 comments · Fixed by #127482
Closed

Add EPOLLWAKEUP to the select module #127481

rruuaanng opened this issue Dec 1, 2024 · 2 comments · Fixed by #127482
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement

Comments

@rruuaanng
Copy link
Contributor

rruuaanng commented Dec 1, 2024

Feature or enhancement

Proposal:

This issue suggests adding new select constants.

for example

fd = /* a socket object */
p = /* a epoll object */
/* It will prevent the system from hanging (e.g. low-power or standby) */
p.register(fd, EPOLLWAKEUP)

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

@rruuaanng rruuaanng added the type-feature A feature request or enhancement label Dec 1, 2024
@picnixz picnixz added the extension-modules C modules in the Modules dir label Dec 1, 2024
@encukou
Copy link
Member

encukou commented Dec 2, 2024

Since EPOLL_URING_WAKE is meant to only be used by uring, I would not add it. It'll be a while until you can write kernel internals in Python.

As for EPOLLWAKEUP, yes, it seems useful to expose that.

@rruuaanng rruuaanng changed the title Add EPOLL_URING_WAKE, EPOLLWAKEUP constants to select module Add EPOLLWAKEUP constants to select module Dec 3, 2024
@rruuaanng
Copy link
Contributor Author

Since EPOLL_URING_WAKE is meant to only be used by uring, I would not add it. It'll be a while until you can write internal kernel internals in Python.

As for EPOLLWAKEUP, yes, it seems useful to expose that.

I've remove it, and change the title.

@erlend-aasland erlend-aasland changed the title Add EPOLLWAKEUP constants to select module Add EPOLLWAKEUP to the select module Dec 3, 2024
@erlend-aasland erlend-aasland linked a pull request Dec 3, 2024 that will close this issue
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this issue Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants