Re: Missing main function

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

 



module_init(gspca_init);
module_exit(gspca_exit);

I think u are lack of some basic concepts about kernel and kernel
module. u need read more Document about that.

2009/9/16 Niamathullah sharief <newbiesha@xxxxxxxxx>:
> 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
>>
>
>



-- 
Best Regards
Lin

--
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