Monday, July 21, 2008

tor2.c scratch pad

I am going to use this post as the scratch pad while reading through tor2.c

Init function: tor2_init
This function registers a pci driver. The driver structure is a global variable "tor2_driver". It has a probe function called "tor2_probe" and a function to remove the driver "tor2_remove".

Probe function: tor2_probe
  1. Does card specific PCI initialization
  2. Calls init_spans(tor);
  3. Calls tor2_launch(cards[x]);
Span initialization: init_spans
This function populates the spans structure within tor structure.

Register with zaptel: tor2_launch
This function registers the spans with the zaptel driver.
And then... the action begins...

No comments: