Hello Friends,
I have follwoing code.
Code:
28 struct pkt_pool_t;
29
30 typedef int (*PKT_POOL_GET_TRAFFIC) (struct pkt_pool_t *pool, pkt_t **pkt, pkt_message_t **msg);
33 typedef int (*PKT_POOL_FREE) (struct pkt_pool_t *pool, pkt_t *pkt);
34 typedef uint32_t (*PKT_POOL_GET_FAIL_COUNT) (struct pkt_pool_t *pool);
35
36 struct pkt_pool_t {
37 PKT_POOL_GET_TRAFFIC temp_traffic;
40 PKT_POOL_FREE free;
42 };
43
44 static inline int __attribute__ ((always_inline))
45 pkt_pool_get_traffic(struct pkt_pool_t *pool, pkt_t **pkt, pkt_message_t **msg)
46 {
47 assert(pool && pool->temp_traffic);
48
49 return (*pool->temp_traffic) (pool, pkt, msg);
50 }
51
I am trying to find out , which function will be fired with "temp_traffic" here.
I understand below points.
1.pool is struct variable and temp_traffic will be function pointer which takes three varaiables.
2.temp_traffic is of type "PKT_POOL_GET_TRAFFIC".
from here i could not able to crack this.
any help would be highly appreciated.