Expand description
Unsafe Declarations for the illumos Doors API
This module merely re-exports the subset of the illumos doors api that we need for this project. It makes no attempt at safety or ergonomics. Insofar as possible, all of the definitions and item descriptions provided here are verbatim Rust imports of the definitions provided in door.h.
If you are not already accustomed to working with doors in C, check out the excellent revolving-doors tutorial.
Structs
- Arguments for, and Return Values from, a Door invocation.
- Descriptor structure for
door_arg_t
d_desc
component ofdoor_desc_t
- Structure used to return metadata from
door_info
.
Constants
- Door has a private thread creation func
- Declare that a
door_desc_t
contains a file descriptor. - Door is currently unreferenced
- Descriptor is local to current process
- No server thread cancel on client abort
- No thread create callbacks on depletion
- Use a private pool of server threads
- Door has a private thread creation func
- Prohibit clients from sending file / socket / door descriptors
- Instruct the kernel to close the descriptor after passing it to the server.
- Door has been revoked
- Deliver an unref notification with door
- Deliver unref notification more than once
Functions
- Invoke a function in another process.
- Turns a function into a file descriptor.
- Return information associated with a door descriptor
- The inverse of
door_call
- return data and control to the calling process. - Revoke access to a door.
Type Definitions
- Handling instructions for
door_desc_t
- Opaque Door ID
- Door Pointer Type
- Signature for a Door Server Procedure
Unions
d_data
component ofdoor_desc_t