[Bug 193733] New: C++ compatibility for some kernel headers

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Sep 18 05:46:17 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193733

            Bug ID: 193733
           Summary: C++ compatibility for some kernel headers
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: sebastian.huber at embedded-brains.de

Created attachment 147423
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147423&action=edit
Patch.

I already sent this patch to the hackers mailing list and added this bug report
on request:

http://lists.freebsd.org/pipermail/freebsd-hackers/2014-September/046091.html

We ported the FreeBSD network stack to RTEMS.  Some users want to write
network interface drivers in C++.  It would be nice if we can make some
FreeBSD kernel headers C++ compatible.

sys/buf_ring.h:

Mabye it is better to fix the integer type of br_cons_head to be able to
use it in atomic_cmpset_int().

sys/mbuf.h:

Maybe it is better to fix the integer type of ext_cnt to be able to use
it for uma_find_refcnt().

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list