#include <minix/type.h>#include <minix/safecopies.h>#include "../system.h"Go to the source code of this file.
Defines | |
| #define | MAX_INDIRECT_DEPTH 5 |
| #define | MEM_TOP 0xFFFFFFFFUL |
| #define | USE_COW_SAFECOPY 0 |
| #define | HASGRANTTABLE(gr) (!RTS_ISSET(gr, RTS_NO_PRIV) && priv(gr) && priv(gr)->s_grant_table > 0) |
Functions | |
| FORWARD | _PROTOTYPE (int safecopy,(endpoint_t, endpoint_t, cp_grant_id_t, int, int, size_t, vir_bytes, vir_bytes, int)) |
| PUBLIC int | verify_grant (endpoint_t granter, endpoint_t grantee, cp_grant_id_t grant, vir_bytes bytes, int access, vir_bytes offset_in, vir_bytes *offset_result, endpoint_t *e_granter) |
| PRIVATE int | safecopy (endpoint_t granter, endpoint_t grantee, cp_grant_id_t grantid, int src_seg, int dst_seg, size_t bytes, vir_bytes g_offset, vir_bytes addr, int access) |
| PUBLIC int | do_safecopy (message *m_ptr) |
| PUBLIC int | do_vsafecopy (message *m_ptr) |
| #define HASGRANTTABLE | ( | gr | ) | (!RTS_ISSET(gr, RTS_NO_PRIV) && priv(gr) && priv(gr)->s_grant_table > 0) |
Definition at line 30 of file do_safecopy.c.
| #define MAX_INDIRECT_DEPTH 5 |
Definition at line 22 of file do_safecopy.c.
| #define MEM_TOP 0xFFFFFFFFUL |
Definition at line 24 of file do_safecopy.c.
| #define USE_COW_SAFECOPY 0 |
Definition at line 26 of file do_safecopy.c.
| FORWARD _PROTOTYPE | ( | int | safecopy, | |
| (endpoint_t, endpoint_t, cp_grant_id_t, int, int, size_t, vir_bytes, vir_bytes, int) | ||||
| ) |
| PUBLIC int do_safecopy | ( | message * | m_ptr | ) |
Definition at line 331 of file do_safecopy.c.
| PUBLIC int do_vsafecopy | ( | message * | m_ptr | ) |
Definition at line 355 of file do_safecopy.c.
| PRIVATE int safecopy | ( | endpoint_t | granter, | |
| endpoint_t | grantee, | |||
| cp_grant_id_t | grantid, | |||
| int | src_seg, | |||
| int | dst_seg, | |||
| size_t | bytes, | |||
| vir_bytes | g_offset, | |||
| vir_bytes | addr, | |||
| int | access | |||
| ) |
Definition at line 220 of file do_safecopy.c.
| PUBLIC int verify_grant | ( | endpoint_t | granter, | |
| endpoint_t | grantee, | |||
| cp_grant_id_t | grant, | |||
| vir_bytes | bytes, | |||
| int | access, | |||
| vir_bytes | offset_in, | |||
| vir_bytes * | offset_result, | |||
| endpoint_t * | e_granter | |||
| ) |
Definition at line 36 of file do_safecopy.c.
1.5.8