Bug 193733 - C++ compatibility for some kernel headers
Summary: C++ compatibility for some kernel headers
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-18 05:46 UTC by sebastian.huber
Modified: 2014-09-18 13:14 UTC (History)
1 user (show)

See Also:


Attachments
Patch. (5.60 KB, patch)
2014-09-18 05:46 UTC, sebastian.huber
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sebastian.huber 2014-09-18 05:46:17 UTC
Created attachment 147423 [details]
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().