|
ReactOS 0.4.16-dev-1948-gd260c1d
|
#include <wintirpc.h>#include <reentrant.h>#include <sys/types.h>#include <rpc/rpc.h>#include <rpc/svc_dg.h>#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "rpc_com.h"
Go to the source code of this file.
Classes | |
| struct | cache_node |
| struct | cl_cache |
Macros | |
| #define | su_data(xprt) ((struct svc_dg_data *)(xprt->xp_p2)) |
| #define | rpc_buffer(xprt) ((xprt)->xp_p1) |
| #define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | SPARSENESS 4 /* 75% sparse */ |
| #define | ALLOC(type, size) (type *) mem_alloc((sizeof (type) * (size))) |
| #define | MEMZERO(addr, type, size) (void) memset((void *) (addr), 0, sizeof (type) * (int) (size)) |
| #define | FREE(addr, type, size) mem_free((addr), (sizeof (type) * (size))) |
| #define | CACHE_LOC(transp, xid) |
Typedefs | |
| typedef struct cache_node * | cache_ptr |
Functions | |
| static void | svc_dg_ops (SVCXPRT *) |
| static enum xprt_stat | svc_dg_stat (SVCXPRT *) |
| static bool_t | svc_dg_recv (SVCXPRT *, struct rpc_msg *) |
| static bool_t | svc_dg_reply (SVCXPRT *, struct rpc_msg *) |
| static bool_t | svc_dg_getargs (SVCXPRT *, xdrproc_t, void *) |
| static bool_t | svc_dg_freeargs (SVCXPRT *, xdrproc_t, void *) |
| static void | svc_dg_destroy (SVCXPRT *) |
| static bool_t | svc_dg_control (SVCXPRT *, const u_int, void *) |
| static int | cache_get (SVCXPRT *, struct rpc_msg *, char **, size_t *) |
| static void | cache_set (SVCXPRT *, size_t) |
| int | svc_dg_enablecache (SVCXPRT *, u_int) |
| SVCXPRT * | svc_dg_create (int fd, u_int sendsize, u_int recvsize) |
Variables | |
| static const char | svc_dg_str [] = "svc_dg_create: %s" |
| static const char | svc_dg_err1 [] = "could not get transport information" |
| static const char | svc_dg_err2 [] = " transport does not support data transfer" |
| static const char | __no_mem_str [] = "out of memory" |
| mutex_t | dupreq_lock |
| static const char | cache_enable_str [] = "svc_enablecache: %s %s" |
| static const char | alloc_err [] = "could not allocate cache " |
| static const char | enable_err [] = "cache already enabled" |
| static const char | cache_set_str [] = "cache_set: %s" |
| static const char | cache_set_err1 [] = "victim not found" |
| static const char | cache_set_err2 [] = "victim alloc failed" |
| static const char | cache_set_err3 [] = "could not allocate new rpc buffer" |
| #define su_data | ( | xprt | ) | ((struct svc_dg_data *)(xprt->xp_p2)) |
| typedef struct cache_node* cache_ptr |
|
static |
Definition at line 533 of file svc_dg.c.
Referenced by svc_dg_recv().
Definition at line 443 of file svc_dg.c.
Referenced by svc_dg_reply().
Definition at line 275 of file svc_dg.c.
Referenced by svc_dg_ops().
Definition at line 95 of file svc_dg.c.
Referenced by svc_tli_create().
Definition at line 253 of file svc_dg.c.
Referenced by svc_dg_ops().
Definition at line 386 of file svc_dg.c.
Definition at line 241 of file svc_dg.c.
Referenced by svc_dg_ops().
Definition at line 232 of file svc_dg.c.
Referenced by svc_dg_ops().
Definition at line 284 of file svc_dg.c.
Referenced by svc_dg_create().
Definition at line 166 of file svc_dg.c.
Referenced by svc_dg_ops().
Definition at line 206 of file svc_dg.c.
Referenced by svc_dg_ops().
Definition at line 382 of file svc_dg.c.
Referenced by __acrt_convert_wcs_mbs(), __acrt_convert_wcs_mbs_cp(), and __crt_win32_buffer< Character, ResizePolicy >::call_win32_function().
|
extern |
Definition at line 59 of file mt_misc.c.
Referenced by cache_get(), cache_set(), and svc_dg_enablecache().