Re: Linux kernel modules development in C++

From: Daniel Phillips (news-innominate.list.linux.kernel@innominate.de)
Date: Wed Sep 27 2000 - 17:37:51 EST


Timur Tabi wrote:
> The real advantage comes when you're writing a driver where the design is
> inherently object-oriented. I can't give an example in Linux...

The VFS is inherently object-oriented. Each filesystem works by
overriding a few methods stored in function table structs. The MM is
well on its way to being object-oriented - check out 'struct
address_space'. I haven't gotten into it much yet but I gather the
various buses are also organized in much the same way. On the whole,
Linux is very object-oriented, but it's not C++-oriented. The bad news
is you don't get any class syntax support from the compiler, you have to
write it all out by hand; the good news is that you tend to be well
aware of exactly what code is being executed to do a given job.

--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 21:00:20 EST