Boost logo

Boost :

Subject: Re: [boost] [linux drivers] Is it possible to use boost in a Linux driver?
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2009-01-14 01:36:56


> Does anybody know if it's possible to use boost within a Linux driver?

short answer - from principle point of view: yes.

A longer answer: probably without the full set of c++ language features.
This means no exception handling (EH), no rtti. Some years ago I wrote a
c++ kernel module (2.4.x). You have to write some stub for the c++
specific linker symbols from g++ e.g. __ctor, __dtor etc. There where
some discussion on net about c++ modules inside linux kernel. You have
to google for it. The problem is the c++ runtime library and some
general problems, e.g. how to handle uncaught exceptions? kernel panic?
not a real solution - therefore no EH.

Regards,
Olaf


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk