|
XenevaOS
|


Go to the source code of this file.
Classes | |
| struct | _post_event_ |
| struct | _postbox_ |
Macros | |
| #define | POSTBOX_CREATE 401 |
| #define | POSTBOX_DESTROY 402 |
| #define | POSTBOX_PUT_EVENT 403 |
| #define | POSTBOX_GET_EVENT 404 |
| #define | POSTBOX_CREATE_ROOT 405 |
| #define | POSTBOX_GET_EVENT_ROOT 406 |
| #define | POSTBOX_NO_EVENT -1 |
| #define | POSTBOX_ROOT_ID 1 |
Typedefs | |
| typedef struct _post_event_ | PostEvent |
| typedef struct _postbox_ | PostBox |
Functions | |
| void | AuIPCPostBoxInitialise () |
| AuIPCPostBoxInitialise – initialise the post box ipc manager. | |
| void | PostBoxPutEvent (PostEvent *event) |
| PostBoxPutEvent – put an event to a specific post box. | |
| AuVFSNode * | AuPostBOXGetNode () |
| void | PostBoxCreate (bool root, uint16_t tid) |
| PostBoxCreate – creates a postbox. | |
| void | PostBoxDestroyByID (uint16_t id) |
| PostBoxDestroyByID – destroys a post box identified by an id. | |
| int | PostBoxIOControl (AuVFSNode *file, int code, void *arg) |
| PostBoxIOControl – I/O Control function for post box manager. | |
BSD 2-Clause License
Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define POSTBOX_CREATE 401 |
| #define POSTBOX_CREATE_ROOT 405 |
| #define POSTBOX_DESTROY 402 |
| #define POSTBOX_GET_EVENT 404 |
| #define POSTBOX_GET_EVENT_ROOT 406 |
| #define POSTBOX_NO_EVENT -1 |
| #define POSTBOX_PUT_EVENT 403 |
| #define POSTBOX_ROOT_ID 1 |
| typedef struct _post_event_ PostEvent |
|
extern |
AuIPCPostBoxInitialise – initialise the post box ipc manager.
create the postbox file
I dont know, but the sixth item in the device fs list is the postbox file node, but miraculously 6th item disappers from the list when opened from user space that's why we are creating a dummy node in the dev list
|
extern |
PostBoxCreate – creates a postbox.
| root | – is this post box root ? |
| tid | – thread id |
|
extern |
PostBoxDestroyByID – destroys a post box identified by an id.
| id | – id of the postbox |
|
extern |
PostBoxIOControl – I/O Control function for post box manager.
| file | – Pointer to postbox file |
| code | – Post Box command |
| arg | – extra data |
|
extern |
PostBoxPutEvent – put an event to a specific post box.
| event | – Event to put |