8000 gh-127481: Add `EPOLLWAKEUP` to the `select` module by rruuaanng · Pull Request #127482 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-127481: Add EPOLLWAKEUP to the select module #127482

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

Merged
merged 9 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove EPOLL_URING_WAKE
  • Loading branch information
rruuaanng committed Dec 3, 2024
commit e5908a9ed58af47d3c8e9441cd308d75325f34e5
4 changes: 1 addition & 3 deletions Doc/library/select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,31 +284,31 @@
| Constant | Meaning |
+===========================+===============================================+
| :const:`EPOLLIN` | Available for read |
+---------------------------+-----------------------------------------------+

Check warning on line 287 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: EPOLLIN [ref.const]
| :const:`EPOLLOUT` | Available for write |
+---------------------------+-----------------------------------------------+

Check warning on line 289 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: EPOLLOUT [ref.const]
| :const:`EPOLLPRI` | Urgent data for read |
+---------------------------+-----------------------------------------------+

Check warning on line 291 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: EPOLLPRI [ref.const]
| :const:`EPOLLERR` | Error condition happened on the assoc. fd |
+---------------------------+-----------------------------------------------+

Check warning on line 293 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: EPOLLERR [ref.const]
| :const:`EPOLLHUP` | Hang up happened on the assoc. fd |
+---------------------------+-----------------------------------------------+

Check warning on line 295 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: EPOLLHUP [ref.const]
| :const:`EPOLLET` | Set Edge Trigger behavior, the default is |
| | Level Trigger behavior |

Check warning on line 297 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: EPOLLET [ref.const]
+---------------------------+-----------------------------------------------+
| :const:`EPOLLONESHOT` | Set one-shot behavior. After one event is |
| | pulled out, the fd is internally disabled |

Check warning on line 300 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: EPOLLONESHOT [ref.const]
+---------------------------+-----------------------------------------------+
| :const:`EPOLLEXCLUSIVE` | Wake only one epoll object when the |
| | associated fd has an event. The default (if |

Check warning on line 303 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: EPOLLEXCLUSIVE [ref.const]
| | this flag is not set) is to wake all epoll |
| | objects polling on a fd. |
+---------------------------+-----------------------------------------------+
| :const:`EPOLLRDHUP` | Stream socket peer closed connection or shut |
| | down writing half of connection. |

Check warning on line 308 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: EPOLLRDHUP [ref.const]
+---------------------------+-----------------------------------------------+
| :const:`EPOLLRDNORM` | Equivalent to :const:`EPOLLIN` |
+---------------------------+-----------------------------------------------+

Check warning on line 311 in Doc/library/select.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:const reference target not found: EPOLLRDNORM [ref.const]
| :const:`EPOLLRDBAND` | Priority data band can be read. |
+---------------------------+-----------------------------------------------+
| :const:`EPOLLWRNORM` | Equivalent to :const:`EPOLLOUT` |
Expand All @@ -317,9 +317,7 @@
+---------------------------+-----------------------------------------------+
| :const:`EPOLLMSG` | Ignored. |
+---------------------------+-----------------------------------------------+
| :const:`EPOLL_URING_WAKE` | Optimizes event wake-up using io_uring. |
+---------------------------+-----------------------------------------------+
| :const:`EPOLLWAKEUP` | Prevents sleep during |
| :const:`EPOLLWAKEUP` | Prevents sleep during. |
+---------------------------+-----------------------------------------------+

.. versionadded:: 3.6
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Add the ``EPOLL_URING_WAKE`` and ``EPOLLWAKEUP`` constants to the :mod:`select`
Add the ``EPOLLWAKEUP`` constants to the :mod:`select`
module.
4 changes: 0 additions & 4 deletions Modules/selectmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -2715,10 +2715,6 @@ _select_exec(PyObject *m)
#ifdef EPOLLMSG
ADD_INT(EPOLLMSG);
#endif
#ifdef EPOLL_URING_WAKE
/* Kernel 6.1+ */
ADD_INT(EPOLL_URING_WAKE);
#endif
#ifdef EPOLLWAKEUP
/* Kernel 3.5+ */
ADD_INT(EPOLLWAKEUP);
Expand Down
Loading
0