Re: [Kiobuf-io-devel] RFC: Kernel mechanism: Compound event wait

Roman Zippel
2001-02-06T00:50:13Z

Hi,

On Mon, 5 Feb 2001, Linus Torvalds wrote:

> This all proves that the lowest level of layering should be pretty much
> noting but the vectors. No callbacks, no crap like that. That's already a
> level of abstraction away, and should not get tacked on. Your lowest level
> of abstraction should be just the "area". Something like
>
> struct buffer {
> struct page *page;
> u16 offset, length;
> };
>
> int nr_buffers:
> struct buffer *array;
>
> should be the low-level abstraction.

Does it has to be vectors? What about lists? I'm thinking about this for
some time now and I think lists are more flexible. At higher level we can
easily generate a list of pages and in a lower level you can still split
them up as needed. It would be basically the same structure, but you
could use it everywhere with the same kind of operations.

bye, Roman