Searched defs:rbuf (Results 1 - 25 of 70) sorted by relevance

123

/illumos-gate/usr/src/cmd/smbsrv/fksmbd/
H A Dfksmbd_door.c68 char *rbuf = NULL; local
122 * da->da_arg.rbuf = (return data buf)
131 rbuf = umem_alloc(rsize, UMEM_DEFAULT);
132 if (rbuf == NULL) {
139 if (dop_arg.rbuf != NULL) {
140 (void) memcpy(rbuf + hdr_size, dop_arg.rbuf, dop_arg.rsize);
141 free(dop_arg.rbuf);
145 (void) smb_doorhdr_encode(hdr, (uint8_t *)rbuf, hdr_size);
152 * NB: The "fake kernel" smbsrv code will umem_free rbuf
[all...]
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_ring_buffer_util.c51 * rbuf pointer to DAPL_RING_BUFFER
64 INOUT DAPL_RING_BUFFER *rbuf,
82 rbuf->base = (void *) dapl_os_alloc(rsize * sizeof (void *));
83 if (rbuf->base != NULL) {
84 rbuf->lim = rsize - 1;
85 rbuf->head = 0;
86 rbuf->tail = 0;
87 dapl_os_lock_init(&rbuf->lock);
104 * rbuf pointer to DAPL_RING_BUFFER
118 INOUT DAPL_RING_BUFFER *rbuf,
63 dapls_rbuf_alloc( INOUT DAPL_RING_BUFFER *rbuf, IN DAT_COUNT size) argument
117 dapls_rbuf_realloc( INOUT DAPL_RING_BUFFER *rbuf, IN DAT_COUNT size) argument
169 dapls_rbuf_destroy( IN DAPL_RING_BUFFER *rbuf) argument
201 dapls_rbuf_add( IN DAPL_RING_BUFFER *rbuf, IN void *entry) argument
236 dapls_rbuf_remove( IN DAPL_RING_BUFFER *rbuf) argument
270 dapls_rbuf_count( IN DAPL_RING_BUFFER *rbuf) argument
[all...]
/illumos-gate/usr/src/cmd/ibd_upgrade/
H A Dibd_delete_link.c38 ibd_dladm_door_call(dladm_handle_t handle, void *arg, size_t asize, void *rbuf, argument
49 darg.rbuf = rbuf;
59 if (darg.rbuf != rbuf) {
61 * The size of the input rbuf is not big enough so that
62 * the door allocate the rbuf itself. In this case, simply
65 (void) munmap(darg.rbuf, darg.rsize);
72 if ((((dlmgmt_retval_t *)rbuf)->lr_err) == 0)
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfmove.c48 uchar *rbuf = NIL(uchar*); local
143 if(rsize <= 0 && (rbuf = (uchar*)malloc(w)) )
145 if(rbuf)
146 { next = rbuf;
232 if(rbuf)
233 free(rbuf);
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dnfsauth.c112 caddr_t rbuf; local
171 rbuf = alloca(rbsz);
173 xdrmem_create(&xdrs_r, rbuf, rbsz, XDR_ENCODE);
183 rbuf = (caddr_t)&res.stat;
191 (void) door_return((char *)rbuf, rbsz, NULL, 0);
/illumos-gate/usr/src/lib/libilb/common/
H A Dilb_comm.c162 * The rbuf is the buffer supplied by the caller for receiving. If it
170 i_ilb_do_comm(ilb_handle_t h, ilb_comm_t *ic, size_t ic_sz, ilb_comm_t *rbuf, argument
177 assert(rbuf != NULL);
213 if ((r = recv(s, rbuf, *rbufsz, 0)) <= 0) {
H A Dilb_nat.c97 ilb_comm_t *req, *rbuf; local
124 if ((rbuf = malloc(rbufsz)) == NULL) {
139 rc = i_ilb_do_comm(h, req, reqsz, rbuf, &tmp_rbufsz);
142 if (rbuf->ic_cmd != ILBD_CMD_OK) {
143 rc = *(ilb_status_t *)&rbuf->ic_data;
147 tmp_si = (ilb_show_info_t *)&rbuf->ic_data;
161 } while (!(rbuf->ic_flags & ILB_COMM_END));
166 if (rbuf->ic_flags & ILB_COMM_END) {
173 rc = i_ilb_do_comm(h, req, reqsz, rbuf, &tmp_rbufsz);
178 free(rbuf);
[all...]
H A Dilb_hc.c107 ilb_comm_t *ic, *rbuf; local
116 if ((rbuf = malloc(rbufsz)) == NULL) {
123 rc = i_ilb_do_comm(h, ic, ic_sz, rbuf, &rbufsz);
127 if (rbuf->ic_cmd != ILBD_CMD_OK) {
128 rc = *(ilb_status_t *)&rbuf->ic_data;
131 (void) memcpy(hcp, &rbuf->ic_data, sizeof (*hcp));
135 free(rbuf);
148 ilb_comm_t ic, *rbuf; local
153 if ((rbuf = malloc(rbufsz)) == NULL)
157 rc = i_ilb_do_comm(h, &ic, sizeof (ic), rbuf,
188 ilb_get_hc_srvs(ilb_handle_t h, const char *rulename, ilb_comm_t **rbuf, size_t *rbufsz) argument
229 ilb_comm_t *rbuf; local
[all...]
H A Dilb_rules.c201 i_ilb_retrieve_rule_names(ilb_handle_t h, ilb_comm_t **rbuf, size_t *rbufsz) argument
217 *rbuf = tmp_rbuf;
223 *rbuf = NULL;
234 ilb_comm_t *ic, *rbuf; local
241 if ((rbuf = malloc(rbufsz)) == NULL) {
247 rc = i_ilb_do_comm(h, ic, ic_sz, rbuf, &rbufsz);
250 if (rbuf->ic_cmd != ILBD_CMD_OK) {
251 rc = *(ilb_status_t *)&rbuf->ic_data;
254 rl = (ilb_rule_info_t *)&rbuf->ic_data;
285 free(rbuf);
295 ilb_comm_t *rbuf; local
[all...]
H A Dilb_sg.c148 i_ilb_retrieve_sg_names(ilb_handle_t h, ilb_comm_t **rbuf, size_t *rbufsz) argument
163 *rbuf = tmp_rbuf;
169 *rbuf = NULL;
174 i_ilb_retrieve_sg_hosts(ilb_handle_t h, const char *sgname, ilb_comm_t **rbuf, argument
186 *rbuf = NULL;
196 *rbuf = tmp_rbuf;
204 *rbuf = NULL;
227 ilb_comm_t *rbuf; local
230 rc = i_ilb_retrieve_sg_hosts(h, sgname, &rbuf, &rbufsz);
233 sg_info = (ilb_sg_info_t *)&rbuf
279 ilb_comm_t *rbuf; local
400 ilb_comm_t *rbuf; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Ddoor.c93 int *rbuf; local
99 rbuf = twoints;
103 rbuf = alloca(rlen);
104 dlp = (datalink_id_t *)(rbuf + 1);
109 rbuf[0] = nports;
113 (void) door_return((char *)rbuf, rlen, NULL, 0);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ilbd/
H A Dilbd_nat.c73 * rbuf: reply buffer to be filled in.
77 ilbd_show_nat(void *cli, const ilb_comm_t *ic, uint32_t *rbuf, size_t *rbufsz) argument
100 ilbd_reply_ok(rbuf, rbufsz);
110 ilbd_reply_ok(rbuf, rbufsz);
111 reply = (ilb_show_info_t *)&((ilb_comm_t *)rbuf)->ic_data;
130 ilbd_reply_err(rbuf, rbufsz, ILB_STATUS_ENOMEM);
139 ilbd_reply_err(rbuf, rbufsz, ret);
158 ((ilb_comm_t *)rbuf)->ic_flags = 0;
193 * rbuf: reply buffer to be filled in.
197 ilbd_show_sticky(void *cli, const ilb_comm_t *ic, uint32_t *rbuf, argument
[all...]
H A Dilbd_support.c272 ilbd_reply_ok(uint32_t *rbuf, size_t *rbufsz) argument
274 ilb_comm_t *ic = (ilb_comm_t *)rbuf;
287 ilbd_reply_err(uint32_t *rbuf, size_t *rbufsz, ilb_status_t status) argument
289 ilb_comm_t *ic = (ilb_comm_t *)rbuf;
/illumos-gate/usr/src/test/zfs-tests/cmd/file_trunc/
H A Dfile_trunc.c174 char *rbuf = NULL; local
177 rbuf = (char *)calloc(1, bsize);
178 if (buf == NULL || rbuf == NULL) {
201 if (read(fd, rbuf, bsize) < bsize) {
206 if (memcmp(buf, rbuf, bsize) != 0) {
221 (void) free(rbuf);
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_kdoor.c169 da->da_arg.rbuf = buf;
177 * Decode the response in rbuf and rsize.
184 char *rbuf = da->da_arg.rbuf; local
187 if (rbuf == NULL || rsize == 0) {
193 xdrmem_create(&xdrs, rbuf, rsize, XDR_DECODE);
270 if (arg->rbuf != NULL && arg->rbuf != arg->data_ptr)
271 kmem_free(arg->rbuf, arg->rsize);
/illumos-gate/usr/src/cmd/mailx/
H A Dquit.c278 FILE *obuf = 0, *fbuf = 0, *rbuf = 0; local
298 PRIV(rbuf = fopen(tempResid, "w+"));
299 if (rbuf == NULL) {
302 PRIV(rbuf = fdopen(fd, "w+"));
303 if (rbuf == NULL) {
315 putc(c, rbuf);
325 putc(c, rbuf);
329 fseek(rbuf, 0L, 0);
339 if (rbuf != NULL)
340 while ((c = getc(rbuf)) !
[all...]
/illumos-gate/usr/src/test/smbclient-tests/cmd/file_trunc/
H A Dfile_trunc.c171 char *rbuf = NULL; local
174 rbuf = (char *)calloc(1, bsize);
175 if (buf == NULL || rbuf == NULL) {
198 if (read(fd, rbuf, bsize) < bsize) {
203 if (memcmp(buf, rbuf, bsize) != 0) {
219 (void) free(rbuf);
/illumos-gate/usr/src/cmd/mdb/intel/modules/sata/
H A Dsata.c55 sata_trace_rbuf_t rbuf; local
63 if (mdb_vread(&rbuf, sizeof (sata_trace_rbuf_t), rbuf_addr)
70 wsp->walk_addr = (uintptr_t)(sata_trace_dmsg_t *)rbuf.dmsgh;
210 sata_trace_rbuf_t rbuf; local
235 if (mdb_vread(&rbuf, sizeof (rbuf), addr) != sizeof (rbuf)) {
240 if (rbuf.dmsgh == NULL) {
245 rval = sata_dmsg_dump((sata_trace_dmsg_t *)rbuf.dmsgh,
/illumos-gate/usr/src/lib/libsmedia/library/common/
H A Dl_misc.c90 char rbuf[sizeof (smedia_services_t) + sizeof (door_desc_t)]; local
118 DPRINTF1("rbuf address=%p\n", rbuf);
124 door_args.rbuf = rbuf;
125 door_args.rsize = sizeof (rbuf);
172 DPRINTF1("rbuf address=%p\n", rbuf);
178 door_args.rbuf = rbuf;
349 char rbuf[sizeof (smedia_services_t) + sizeof (door_desc_t)]; local
[all...]
/illumos-gate/usr/src/uts/intel/io/pciex/
H A Dpcie_acpi.c144 UINT32 *rbuf; local
196 rbuf = (UINT32 *)((ACPI_OBJECT *)rb.Pointer)->Buffer.Pointer;
199 if (rbuf[0] & OSC_STATUS_ERRORS) {
200 PCIE_DBG("_OSC method failed (STATUS %d)\n", rbuf[0]);
205 *osc_flags = rbuf[2];
209 (void *)dip, rbuf[0], rbuf[1], tmp_ctrl, rbuf[2]);
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_kdoor.c232 * this call, response data must be referenced via rbuf and rsize.
258 da->da_arg.rbuf = door_arg.data_ptr;
301 da->da_arg.rbuf = buf;
309 * Decode the response in rbuf and rsize.
316 char *rbuf = da->da_arg.rbuf; local
319 if (rbuf == NULL || rsize == 0) {
325 xdrmem_create(&xdrs, rbuf, rsize, XDR_DECODE);
402 if (arg->rbuf != NULL && arg->rbuf !
[all...]
/illumos-gate/usr/src/lib/librcm/
H A Dlibrcm_event.c99 door_arg.rbuf = NULL; /* doorfs will provide return buf */
123 if (door_arg.rbuf == NULL || door_arg.rsize == 0) {
130 (void) nvlist_unpack(door_arg.rbuf, door_arg.rsize,
132 (void) munmap(door_arg.rbuf, door_arg.rsize);
140 door_arg.rbuf = NULL;
252 char rbuf[BUF_THRESHOLD]; local
313 bcopy(args, rbuf, alen);
315 args = rbuf;
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd.h130 char *rbuf; member in struct:smbd_arg
/illumos-gate/usr/src/uts/common/rpc/
H A Drdma_subr.c399 rdma_buf_t rbuf = {0}; local
401 rbuf.type = RECV_BUFFER;
402 if (RDMA_BUF_ALLOC(conn, &rbuf)) {
406 clist_add(&cl, 0, rbuf.len, &rbuf.handle, rbuf.addr,
425 rdma_buf_t rbuf = {0}; local
427 rbuf.type = RECV_BUFFER;
428 if (RDMA_BUF_ALLOC(conn, &rbuf)) {
431 clist_add(&cl, 0, rbuf
440 rdma_buf_alloc(CONN *conn, rdma_buf_t *rbuf) argument
446 rdma_buf_free(CONN *conn, rdma_buf_t *rbuf) argument
[all...]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_doorclnt.c311 * to the caller's arg->rbuf so that arg has references to both input and
315 * by passing rbuf through the rsp_xdr function.
373 * this call, response data must be referenced via rbuf and rsize.
400 da->da_arg.rbuf = door_arg.data_ptr;
443 da->da_arg.rbuf = buf;
451 * Decode the response in rbuf and rsize.
458 char *rbuf = da->da_arg.rbuf; local
461 if (rbuf == NULL || rsize == 0) {
466 xdrmem_create(&xdrs, rbuf, rsiz
[all...]

Completed in 58 milliseconds

123