Anish
2008-06-28 16:48:12 UTC
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
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
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
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de