8000 Comparing master...wip_systemd · vpelletier/python-functionfs · GitHub
[go: up one dir, main page]

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vpelletier/python-functionfs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: vpelletier/python-functionfs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: wip_systemd
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jul 30, 2023

  1. WIP functionfs: Add support for systemd.socket-style gadget initialis…

    …ation
    
    WIP: untested, subject to changes
    
    See (5)systemd.socket, ListenUSBFunction.
    In such setup, systemd opens endpoint zero, writes the descriptors and
    opens all endpoints. As a result:
    - endpoints are received as already-open file descriptors
    - neither function nor string descriptors may be written to endpoint 0
      upon function activation
    Design decision: requiring the developer to provide a python representation
    of the function, which must always consistent with the descriptor provided
    to the kernel (which must be stored in a file prior to the function process
    starting) would only cause confusion. Instead, expect to receive the
    content of the file containing the function descriptor as received by
    systemd, and parse it to get the pieces of information necessary for event
    monitoring.
    All this is done without adding any dependency on systemd code, only making
    it possible to use in such context.
    vpelletier committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    8a89fed View commit details
    Browse the repository at this point in the history
Loading
0