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 open_path method as an alternative to open (to allow use of udev symlinks). #130

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

linuxtim
Copy link

@linuxtim linuxtim commented Apr 24, 2023

This is a PR which resolves #129 by adding an open_path method (an alternative to open) and also includes documentation and for why and when this is useful, as well as a sample set of udev rules illustrating some common use-cases.

Prep for adding open_path Python method in doceme#129
Adds to the functionality provided by the open() call (which hard-codes
the opening of /dev/spidev<bus>.<chipselect> device file paths).
Because the bus number allocation may not be knowable in advance (bus
numbers are dynamically allocated by the Linux kernel), open_path()
allows the user to employ udev rules to deterministically create a
symlink to the correct hardware device at boot and/or hot-plug time.

Part of doceme#129
tim-seoss added a commit to tim-seoss/scs_core that referenced this pull request Jun 13, 2023
tim-seoss added a commit to tim-seoss/scs_dfe_eng that referenced this pull request Jun 13, 2023
See: doceme/py-spidev#130 for rationale and
pre-requisite changes to py-spidev.
tim-seoss added a commit to tim-seoss/scs_host_bbe_southern that referenced this pull request Jun 13, 2023
See: doceme/py-spidev#130 for rationale and
pre-requisite changes to py-spidev.
tim-seoss added a commit to tim-seoss/scs_mfr that referenced this pull request Jun 13, 2023
See: doceme/py-spidev#130 for rationale and
pre-requisite changes to py-spidev.
tim-seoss added a commit to tim-seoss/scs_host_bbe_southern that referenced this pull request Jun 13, 2023
See: doceme/py-spidev#130 for rationale and
pre-requisite changes to py-spidev.
tim-seoss added a commit to tim-seoss/scs_host_cpc that referenced this pull request Jun 13, 2023
See: doceme/py-spidev#130 for rationale and
pre-requisite changes to py-spidev.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants