Re: Missing main function

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

 



No actually i disabled the entire "gspca" in kernel config before compiling the kernel. The folder contains

 conex.c
etoms.c
finepix.c
gspca.c
gspca.h
jpeg.h
Kconfig
Makefile
mars.c
mr97310a.c
ov519.c
ov534.c
pac207.c
pac3711.c
pac_common.h
sonixb.c
sonixj.c
spca500.c
spca501.c
spca505.c
spca506.c
spca508.c
spca561.c
sq905.c
sq905c.c
stk014.c
sunplus.c
t613.c
tv8532.c
vc032x.c
zc3xx.c
zc3xx-reg.h

  This are the files in that folder which i disabled. In this gspca.c program the main function is missing.

On Tue, Sep 15, 2009 at 9:45 PM, Michael Blizek <michi1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
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



[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