[BACK]Return to uipc_socket.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/uipc_socket.c between version 1.115 and 1.116

version 1.115, 2005/12/27 00:00:29 version 1.116, 2006/03/01 12:38:21
Line 390  sosend_loan(struct socket *so, struct ui
Line 390  sosend_loan(struct socket *so, struct ui
         vaddr_t lva, va;          vaddr_t lva, va;
         int npgs, i, error;          int npgs, i, error;
   
         if (uio->uio_segflg != UIO_USERSPACE)          if (VMSPACE_IS_KERNEL_P(uio->uio_vmspace))
                 return (0);                  return (0);
   
         if (iov->iov_len < (size_t) space)          if (iov->iov_len < (size_t) space)
Line 405  sosend_loan(struct socket *so, struct ui
Line 405  sosend_loan(struct socket *so, struct ui
   
         /* XXX KDASSERT */          /* XXX KDASSERT */
         KASSERT(npgs <= M_EXT_MAXPAGES);          KASSERT(npgs <= M_EXT_MAXPAGES);
         KASSERT(uio->uio_lwp != NULL);  
   
         lva = sokvaalloc(len, so);          lva = sokvaalloc(len, so);
         if (lva == 0)          if (lva == 0)
                 return 0;                  return 0;
   
         error = uvm_loan(&uio->uio_lwp->l_proc->p_vmspace->vm_map, sva, len,          error = uvm_loan(&uio->uio_vmspace->vm_map, sva, len,
             m->m_ext.ext_pgs, UVM_LOAN_TOPAGE);              m->m_ext.ext_pgs, UVM_LOAN_TOPAGE);
         if (error) {          if (error) {
                 sokvafree(lva, len);                  sokvafree(lva, len);
Line 934  int
Line 933  int
 soreceive(struct socket *so, struct mbuf **paddr, struct uio *uio,  soreceive(struct socket *so, struct mbuf **paddr, struct uio *uio,
         struct mbuf **mp0, struct mbuf **controlp, int *flagsp)          struct mbuf **mp0, struct mbuf **controlp, int *flagsp)
 {  {
         struct lwp *l;          struct lwp *l = curlwp;
         struct mbuf     *m, **mp;          struct mbuf     *m, **mp;
         int             flags, len, error, s, offset, moff, type, orig_resid;          int             flags, len, error, s, offset, moff, type, orig_resid;
         const struct protosw    *pr;          const struct protosw    *pr;
Line 945  soreceive(struct socket *so, struct mbuf
Line 944  soreceive(struct socket *so, struct mbuf
         mp = mp0;          mp = mp0;
         type = 0;          type = 0;
         orig_resid = uio->uio_resid;          orig_resid = uio->uio_resid;
         l = uio->uio_lwp;  
   
         if (paddr)          if (paddr)
                 *paddr = 0;                  *paddr = 0;

Legend:
Removed from v.1.115  
changed lines
  Added in v.1.116

CVSweb <webmaster@jp.NetBSD.org>