tech-net archive

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

LInked list representation for packet classes in the device - "Create an in-kernel api for packet classes "



Hi ,

I am working on the project  ' Create an in-kernel API for packet
classes'. During the registration part, where drivers register their
tokens with a pseudo device, I want to maintain a linked list of all
classes in the device as shown below.

struct interface_struct{

char*  interface_name;
interface_struct * if_list;
class_struct *class_list;
};

struct class_struct{
char* class_name;
int token_id;
class_struct *class_list;
};


if_1 ------> if_2 -----------> if_3 -----------> if_4 ------------------> if_5
 |                |                    |                    |
                 |
 |                |                    |                    |
                 |
 v               v                    v                    v
               v
class_1
 |
 |
 v
class_2


Home | Main Index | Thread Index | Old Index