Skip to content

Add EPOLLWAKEUP to the select module #127481

Closed

Description

@rruuaanng

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

Activity

  1. encukou commented on Dec 2, 2024

    @encukou
    Member

    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.

  2. changed the title [-]Add `EPOLL_URING_WAKE`, `EPOLLWAKEUP` constants to select module[/-] [+]Add `EPOLLWAKEUP` constants to select module[/+] on Dec 3, 2024
  3. rruuaanng commented on Dec 3, 2024

    @rruuaanng
    ContributorAuthor

    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.

  4. changed the title [-]Add `EPOLLWAKEUP` constants to select module[/-] [+]Add `EPOLLWAKEUP` to the select module[/+] on Dec 3, 2024
  5. added a commit that references this issue on Dec 4, 2024
  6. added a commit that references this issue on Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions