mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-37085: Expose SocketCAN bcm_msg_head flags (#13646)
Expose the CAN_BCM SocketCAN constants used in the bcm_msg_head struct flags (provided by <linux/can/bcm.h>) under the socket library. This adds the following constants with a CAN_BCM prefix: * SETTIMER * STARTTIMER * TX_COUNTEVT * TX_ANNOUNCE * TX_CP_CAN_ID * RX_FILTER_ID * RX_CHECK_DLC * RX_NO_AUTOTIMER * RX_ANNOUNCE_RESUME * TX_RESET_MULTI_IDX * RX_RTR_FRAME * CAN_FD_FRAME The CAN_FD_FRAME flag was introduced in the 4.8 kernel, while the other ones were present since SocketCAN drivers were mainlined in 2.6.25. As such, it is probably unnecessary to guard against these constants being missing.
This commit is contained in:
parent
472eced677
commit
31c4fd2a10
5 changed files with 38 additions and 0 deletions
|
@ -391,6 +391,9 @@ Constants
|
|||
|
||||
.. availability:: Linux >= 2.6.25.
|
||||
|
||||
.. note::
|
||||
The :data:`CAN_BCM_CAN_FD_FRAME` flag is only available on Linux >= 4.8.
|
||||
|
||||
.. versionadded:: 3.4
|
||||
|
||||
.. data:: CAN_RAW_FD_FRAMES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue