Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • K kernel
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-osredox-os
  • kernel
  • Merge requests
  • !99

File descriptor sending support via new `sendfd:` scheme

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Rose Hudson requested to merge rosehuds/kernel:master into master Dec 30, 2018
  • Overview 5
  • Commits 2
  • Pipelines 0
  • Changes 2

This MR adds support for sending file descriptors between processes via a new kernel scheme, sendfd:. Processes expecting to receive fds will open sendfd:socket_name with O_CREAT set and read or wait for events on this fd. Processes wanting to send fds will open sendfd:socket_name with O_CREAT clear and simply write the fd as bytes into the socket. The receiving end will then read a syscall::data::ReceivedFd struct (see this MR on syscall) from the socket which contains the new fd number and the PID of the sending process.

I haven't been able to test this yet.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master