-
Notifications
You must be signed in to change notification settings - Fork 204
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
linuxtim
wants to merge
5
commits into
doceme:master
Choose a base branch
from
tim-seoss:open_path
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prep for adding open_path Python method in doceme#129
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
See: doceme/py-spidev#130 for explanation.
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a PR which resolves #129 by adding an
open_path
method (an alternative toopen
) 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.