Re: Extended Kernel API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

> The linked list implementation is generic, and it is
> not kernel-oriented as you claimed.

    It certainly is, as it requires the list_head to
be the part of the data. Please correct me if i am
wrong. 

In kernel:

typedef struct list_head {
        struct list_head *next, *prev;
} list_t;

In glib:

struct GList
{
  gpointer data;
  GList *next;
  GList *prev;
};

> Is there a need for hashtables?
   
     Yes of course. I need it and i know that others
may need it as well.

=====
"The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts." --Bertrand Russell

"We are convinced that freedom without Socialism is privilege and injustice, and that Socialism without freedom is slavery and brutality."  from the book: "The Political Philosophy of Bakunin".

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux