Re: Missing main function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here's a link to the full edition of "Linux Device Drivers" (O'Reilly), a great reference/textbook on kernel driver design.

-Frank

http://lwn.net/Kernel/LDD3/

--- On Tue, 9/15/09, Michael Blizek <michi1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

From: Michael Blizek <michi1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Missing main function
To: "Niamathullah sharief" <newbiesha@xxxxxxxxx>
Cc: kernelnewbies@xxxxxxxxxxxx
Date: Tuesday, September 15, 2009, 4:15 PM

Hi!

On 13:39 Tue 15 Sep     , Niamathullah sharief wrote:
> Hi friends,
>    I am having the video drivers..ie "gspca.c, v4l1.compat.c, v4l2-device.c,
> v4l2-ioctl.c,v4l2-dev.c".
>    When i tried to read all this programs but i didn't find main function in
> any programs.
>    I don't know how this programs works. From where is the main function for
> this programs.
>    I took this drivers from Version 2.6.30 kernel. Kindly help me.

You might be looking for "module_init". It defines a function which is
executed on kernel boot or module load time.

    -Michi
--
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux