lkml.org 
[lkml]   [2000]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux kernel modules development in C++


On Thu, 28 Sep 2000, Daniel Phillips wrote:

> 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'.

Check also vm_area_struct - that's what memory contexts consist of
(user memory consists of objects that correspond to areas; pagein,
pageout, etc. are methods of these objects; mmap() and friends
create/manipulate/destroy them). File mappings (both shared and
private) are derived classes, ditto for attached shm segment, etc.

-
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/

\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.251 / U:2.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site