Lines Matching refs:rbufp
52 * we re-allocate the required memory and assign it to `rbufp', copy the data
53 * to `rbufp' and then call munmap() (see below).
57 * return status, should set `rbufp' to NULL and set `rsize' to 0.
60 i_lldp_common_door_call(void *arg, size_t asize, void **rbufp, size_t rsize,
67 if (rbufp == NULL) {
69 rbufp = (void **)&rvalp;
77 darg.rbuf = *rbufp;
90 if (darg.rbuf != *rbufp) {
98 * The size of the buffer `*rbufp' was not big enough
102 * Reallocate the buffer `*rbufp' and memcpy() the contents
109 if ((newp = realloc(*rbufp, darg.rsize)) == NULL) {
112 *rbufp = newp;
113 (void) memcpy(*rbufp, darg.rbuf, darg.rsize);
127 * Makes a door call to the server and `rbufp' is not re-allocated. If
128 * the data returned from the server can't be accomodated in `rbufp'
132 lldp_door_call(void *arg, size_t asize, void *rbufp, size_t rsize)
135 (rbufp == NULL ? NULL : &rbufp), rsize, B_FALSE));
139 * Makes a door call to the server and `rbufp' always points to a
145 lldp_door_dyncall(void *arg, size_t asize, void **rbufp, size_t rsize)
147 return (i_lldp_common_door_call(arg, asize, rbufp, rsize, B_TRUE));