all. I am reading the source code of linux kernel and find one line which I do not understand:
file: /net/sched/sch_generic.c
location: the definition of struct Qdisc
:
struct Qdisc
{
int (*enqueue)(struct sk_buff *skb, struct Qdisc *dev);
struct sk_buff * (*dequeue)(struct Qdisc *dev);
unsigned flags;
#define TCQ_F_BUILTIN 1
#define TCQ_F_THROTTLED 2
#define TCQ_F_INGRESS 4
int padded;
struct Qdisc_ops *ops;
u32 handle;
u32 parent;
atomic_t refcnt;
....
what is the meaning of int (*enqueue)(struct sk_buff *skb, struct Qdisc *dev)
(first line)? Is enqueue
a pointer?