Re: Application main()

Logan Owen <[email protected]> Mon, 10 Apr 2006 08:08:40 -0400
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <[email protected]>
The reason you did not find the main() loop is because there is not 
one.  This is not a stand alone program, put rather a kernel driver.  
Read up on linux kernel drivers to figure out the specifics of how the 
work.   There is a module_load and a module_unload (or something like 
that) that is called when the module is modprobed.  This sets up the 
driver.  From there on out, the kernel just calls the function it is 
told to, like, call this function when a packet is recieved, etc.

Like I said, I would highly recommend reading up on kernel drivers.  Be  
careful if you start messing around, because you can easily mess up your 
hardware where it is unuseable.

Logan


Raj Kumar wrote:
> Hello.
> I have doubt in coding, kindly help me in my problem.
> I down loaded the driver source code of atmel at76c503a, 
> Berlios with version 0.11. 
> According to the readme file i did  test it by pinging another host with a 
> wlan adaptor. 
> It works fine. 
> But I don't know the flow of driver and application in that source code.
> Because i did not find main(). In that code i.e what i downloaded.
> So kindly help me in the doubt.
> Here with i attached read me file.
>
> Regards
> Rajkumar
>