DBus in the kernel?

Ian Molton ian.molton at collabora.co.uk
Thu Jan 7 02:17:16 PST 2010


Thiago Macieira wrote:
> Em Quarta-feira 06 Janeiro 2010, às 13:00:19, Ian Molton escreveu:
>> Lennart Poettering wrote:
>>> That is certainly doable, and is in fact done by some projects
>>> (i.e. bluez passes BT audio via such a side-channel). However it kinda
>>> sucks that as soon as you want to pass more than boring control data
>>> you cannot use dbus anymore and need to invent your own protocol.
>> well, you either need to use data than dbus can marshall efficiently or
>> not... OTOH, I'd have thought a byte stream could be marshalled with
>> damn near zero overhead. (other than dbus' current two context switch
>> overhead)
> 
> Not exactly.
> 
> First of all, it cannot be done without memcpy, which also means the library 
> must allocate a chunk of memory that matches your byte array size.

srsly? theres no way a byte array an be marshalled 'in place' ?

if so thats a pretty big FAIL. I cant see anything in the wire protocol
that prevents in place marshalling of byte arrays though.


More information about the dbus mailing list