HomeSort by: relevance | last modified time | path
    Searched defs:pc_read (Results 1 - 2 of 2) sorted by relevancy

  /src/share/examples/pud/intro/
intro.c 95 struct pud_creq_read *pc_read; local in function:main
98 pc_read = (void *)pdr;
100 (unsigned long long)pc_read->pm_offset,
101 pc_read->pm_resid);
103 clen = MIN(strlen(curstr), pc_read->pm_resid);
104 strncpy(pc_read->pm_data, curstr, clen);
106 clen = pc_read->pm_resid;
107 pc_read->pm_resid = 0;
109 pc_read->pm_resid -= clen;
  /src/sys/dev/pud/
pud_dev.c 233 struct pud_creq_read *pc_read; local in function:pud_cdev_read
238 pc_read = kmem_zalloc(allocsize, KM_SLEEP);
240 pc_read->pm_offset = uio->uio_offset;
241 pc_read->pm_resid = uio->uio_resid;
243 error = pud_request(dev, pc_read, allocsize,
248 if (pc_read->pm_resid > uio->uio_resid) {
253 error = uiomove(pc_read->pm_data,
254 uio->uio_resid - pc_read->pm_resid, uio);
257 kmem_free(pc_read, allocsize);

Completed in 280 milliseconds