[BACK]Return to uipc_mbuf.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_mbuf.c between version 1.127 and 1.127.2.1

version 1.127, 2008/04/28 20:24:05 version 1.127.2.1, 2008/09/18 04:31:44
Line 160  void
Line 160  void
 mbinit(void)  mbinit(void)
 {  {
   
         KASSERT(sizeof(struct _m_ext) <= MHLEN);          CTASSERT(sizeof(struct _m_ext) <= MHLEN);
         KASSERT(sizeof(struct mbuf) == MSIZE);          CTASSERT(sizeof(struct mbuf) == MSIZE);
   
         mclpool_allocator.pa_backingmap = mb_map;          mclpool_allocator.pa_backingmap = mb_map;
   
Line 281  mowner_convert_to_user(struct mowner *mo
Line 281  mowner_convert_to_user(struct mowner *mo
 {  {
   
         memset(mo_user, 0, sizeof(*mo_user));          memset(mo_user, 0, sizeof(*mo_user));
         KASSERT(sizeof(mo_user->mo_name) == sizeof(mo->mo_name));          CTASSERT(sizeof(mo_user->mo_name) == sizeof(mo->mo_name));
         KASSERT(sizeof(mo_user->mo_descr) == sizeof(mo->mo_descr));          CTASSERT(sizeof(mo_user->mo_descr) == sizeof(mo->mo_descr));
         memcpy(mo_user->mo_name, mo->mo_name, sizeof(mo->mo_name));          memcpy(mo_user->mo_name, mo->mo_name, sizeof(mo->mo_name));
         memcpy(mo_user->mo_descr, mo->mo_descr, sizeof(mo->mo_descr));          memcpy(mo_user->mo_descr, mo->mo_descr, sizeof(mo->mo_descr));
         percpu_foreach(mo->mo_counters, mowner_conver_to_user_cb, mo_user);          percpu_foreach(mo->mo_counters, mowner_conver_to_user_cb, mo_user);

Legend:
Removed from v.1.127  
changed lines
  Added in v.1.127.2.1

CVSweb <webmaster@jp.NetBSD.org>