freelanceprogrammers.org Forum Index » C

Regrading Device Drivers in Linux


View user's profile Post To page top
ashwin_mittal26 Posted: Thu Jan 20, 2005 9:09 am


Joined: 27 Dec 2004

Posts: 14
Regrading Device Drivers in Linux
Hi all,

Myself,Ashwin Mittal, want to do major Project in
Device Drivers. I have studied allt the internals
(Like Memory Management,IPC & File System) in LInux.
Please Guide me as I want to do some project in device
drivers.

My kernel version is 2.4.18-14.
Please let me know if you guys have any idea regarding
this.


Regards,
Ashwin Mittal.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Reply with quote
Send private message
View user's profile Post To page top
joe_steeve_1981 Posted: Thu Jan 20, 2005 12:55 pm


Joined: 26 Jul 2003

Posts: 20
Regrading Device Drivers in Linux
Myself,Ashwin Mittal, want to do major Project in
> Device Drivers. I have studied allt the internals
> ....
> My kernel version is 2.4.18-14.
> Please let me know if you guys have any idea regarding
> this.

Start the coding., and come back when you face problems with
it.. Only then we can help you.

--
.O. A proud GNU user
..O http://www.joesteeve.tk/
OOO http://gnukid.5gigs.com/
Reply with quote
Send private message
View user's profile Post To page top
ashwin_mittal26 Posted: Thu Jan 20, 2005 2:49 pm


Joined: 27 Dec 2004

Posts: 14
Regrading Device Drivers in Linux
Hi Steeve,


I have two queries right now...
1) I have notice one thing in 2.4.18.14 Linux Kernel
Version... that all the functions start with "__"
this like __init...

Is this a convention or it has got some functions..


2) And One book I am going through "Rubini Corbet" in
which I am running two functions __init and
__cleanup but when I am trying to compile. I am
getting the kernel Version Mismatch error....

Or If u know some other better book, Please suggest
me...

Regards,
Ashwin Mittal.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Reply with quote
Send private message
View user's profile Post To page top
alexpally Posted: Fri Jan 21, 2005 3:23 pm


Joined: 21 Jan 2005

Posts: 2
Regrading Device Drivers in Linux
there are tags for that like

try with by including
#include <module.h>
#include <linux.h>

#define nomodversions

The better book is Linux Device Drivers by Allesandro

RGDS
Alex

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
Reply with quote
Send private message
View user's profile Post To page top
joe_steeve_1981 Posted: Sat Jan 22, 2005 3:25 pm


Joined: 26 Jul 2003

Posts: 20
Regrading Device Drivers in Linux
I have two queries right now... 1) I have notice one thing in
> 2.4.18.14 Linux Kernel Version... that all the functions start
> with "__" this like __init...

AFAIK this is purely to avoid shortage of namespace. The naming
approach is purely programming practice.

--
.O. A proud GNU user
..O http://www.joesteeve.tk/
OOO http://gnukid.5gigs.com/
Reply with quote
Send private message
View user's profile Post To page top
syam_talluri Posted: Wed Jan 26, 2005 2:56 pm


Joined: 26 Jan 2005

Posts: 3
Regrading Device Drivers in Linux
hey man,
if it is created with __init macro those
functions are placed in the .init sections ,the
functions residing in those function are called in the
initialisation phase and discarded ,so we can get so
much free space ...
In linux so many functions will run
at the boot time ,after that those functions are not
needed ,such kind of functions are placed in the
.init.text section ,after their usage they are
removed
from the memory that had loaded at boot time.



--- Alex <alexpally@...> wrote:

>
>
> there are tags for that like
>
> try with by including
> #include <module.h>
> #include <linux.h>
>
> #define nomodversions
>
> The better book is Linux Device Drivers by
> Allesandro
>
> RGDS
> Alex
>
>
________________________________________________________________________
> Yahoo! India Matrimony: Find your life partner
> online
> Go to: http://yahoo.shaadi.com/india-matrimony
>
>
>
>




__________________________________
Do you Yahoo!?
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help