* Understanding how kernel functions works and adding new one
@ 2004-12-25 4:20 linux lover
2004-12-25 9:09 ` Graeme T Ford
0 siblings, 1 reply; 7+ messages in thread
From: linux lover @ 2004-12-25 4:20 UTC (permalink / raw)
To: linux-kernel
Hello ,
I want to know what things are require me to add my own
function in kernel through modules?
Actually i have 2 questions in my mind
1) Is it possible to write own user defined function in kernel
modules and get in laoded in kernel and allow kernel to use it?
2) Is it possible to add my own function program in C file to
kernel and allow my kernel module to use it?
I want to add own function not any system call(Am i
misunderstanding between syscall and new function call in kernel?)
Can anybody correct me in above approaches?Also give me steps
to do that adding functions in kernel/kernel module?
Thanks in advance.
regards,
linux.lover
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Understanding how kernel functions works and adding new one
2004-12-25 4:20 Understanding how kernel functions works and adding new one linux lover
@ 2004-12-25 9:09 ` Graeme T Ford
2004-12-25 13:15 ` Jim Nelson
0 siblings, 1 reply; 7+ messages in thread
From: Graeme T Ford @ 2004-12-25 9:09 UTC (permalink / raw)
To: linux lover; +Cc: linux-kernel
Take a look at:
http://www.kernelhacking.org/docs/kernelhacking-HOWTO/index.html
and
http://www.linuxhq.com/lkprogram.html
First is a basic intro, the latter contains some good information to
get you started.
You might also find just looking at random .c files in the driver
source directory helpful, to see how it's been done there.
Lastly, I've noticed you've been asking some questions over the past
few days which are easily answered by a simple Google search - may I
suggest that as a first point of call in future. You'd probably learn
a lot more by searching for stuff yourself.
Regards (and Merry Christmas),
Graeme.
On Sat, 25 Dec 2004 09:50:23 +0530, linux lover
<linux.lover2004@gmail.com> wrote:
> Hello ,
> I want to know what things are require me to add my own
> function in kernel through modules?
> Actually i have 2 questions in my mind
> 1) Is it possible to write own user defined function in kernel
> modules and get in laoded in kernel and allow kernel to use it?
> 2) Is it possible to add my own function program in C file to
> kernel and allow my kernel module to use it?
> I want to add own function not any system call(Am i
> misunderstanding between syscall and new function call in kernel?)
> Can anybody correct me in above approaches?Also give me steps
> to do that adding functions in kernel/kernel module?
> Thanks in advance.
> regards,
> linux.lover
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Understanding how kernel functions works and adding new one
2004-12-25 9:09 ` Graeme T Ford
@ 2004-12-25 13:15 ` Jim Nelson
2004-12-25 20:04 ` Pedro Venda
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Jim Nelson @ 2004-12-25 13:15 UTC (permalink / raw)
To: Graeme T Ford; +Cc: linux lover, linux-kernel
> Lastly, I've noticed you've been asking some questions over the past
> few days which are easily answered by a simple Google search - may I
> suggest that as a first point of call in future. You'd probably learn
> a lot more by searching for stuff yourself.
>
I'll second that. Google is probably the closest thing to Microsoft's Knowlege
Base that Linux has for quick questions ;) .
There are a number of good books written on the kernel - Linux Device Drivers is
due to have its third edition released in February. I'm glad - my second edition
copy is starting to look a little ragged from constant reference.
Check this website:
http://www.dit.upm.es/~jmseyas/linux/kernel/hackers-docs.html
It has a good listing of on- and off-line resources, and was updated recently.
Jim
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Understanding how kernel functions works and adding new one
2004-12-25 13:15 ` Jim Nelson
@ 2004-12-25 20:04 ` Pedro Venda
2004-12-28 20:38 ` Lee Revell
2004-12-26 4:16 ` sean
2004-12-26 10:00 ` Chris Ross
2 siblings, 1 reply; 7+ messages in thread
From: Pedro Venda @ 2004-12-25 20:04 UTC (permalink / raw)
To: Jim Nelson; +Cc: Graeme T Ford, linux lover, linux-kernel
Jim Nelson wrote:
>
>> Lastly, I've noticed you've been asking some questions over the past
>> few days which are easily answered by a simple Google search - may I
>> suggest that as a first point of call in future. You'd probably learn
>> a lot more by searching for stuff yourself.
>>
>
> I'll second that. Google is probably the closest thing to Microsoft's
> Knowlege Base that Linux has for quick questions ;) .
>
> There are a number of good books written on the kernel - Linux Device
> Drivers is due to have its third edition released in February. I'm glad
> - my second edition copy is starting to look a little ragged from
> constant reference.
I must mention Robert Love's Linux Kernel Programming. I'm half-way through it,
and I can say it is excelent!
regards & merry xmas,
pedro venda.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Understanding how kernel functions works and adding new one
2004-12-25 13:15 ` Jim Nelson
2004-12-25 20:04 ` Pedro Venda
@ 2004-12-26 4:16 ` sean
2004-12-26 10:00 ` Chris Ross
2 siblings, 0 replies; 7+ messages in thread
From: sean @ 2004-12-26 4:16 UTC (permalink / raw)
To: Jim Nelson; +Cc: linux-kernel
On Sat, Dec 25, 2004 at 08:15:04AM -0500, Jim Nelson wrote:
>
> There are a number of good books written on the kernel - Linux Device
> Drivers is due to have its third edition released in February. I'm glad -
> my second edition copy is starting to look a little ragged from constant
> reference.
In addition to this book, another one that I have found to be an
excellent source is, Understanding the Linux Kernel. There's a second
edition available now here:
http://www.amazon.com/exec/obidos/tg/detail/-/0596002130/ref=pd_qpt_gw_2/103-9996868-5870242 and I imagine that another will be released in the not too distance
future, which will cover the 2.6 kernel. It wouldn't surprise me if
somebody here is inside information on a new edition.
Good luck,
--
Sean
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Understanding how kernel functions works and adding new one
2004-12-25 13:15 ` Jim Nelson
2004-12-25 20:04 ` Pedro Venda
2004-12-26 4:16 ` sean
@ 2004-12-26 10:00 ` Chris Ross
2 siblings, 0 replies; 7+ messages in thread
From: Chris Ross @ 2004-12-26 10:00 UTC (permalink / raw)
To: Jim Nelson; +Cc: Graeme T Ford, linux lover, linux-kernel
Jim Nelson escreveu:
> I'll second that. Google is probably the closest thing to Microsoft's
> Knowlege Base that Linux has for quick questions ;) .
Especially if you use Google's Linux specific section
http://www.google.com/linux
Regards,
Chris R.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Understanding how kernel functions works and adding new one
2004-12-25 20:04 ` Pedro Venda
@ 2004-12-28 20:38 ` Lee Revell
0 siblings, 0 replies; 7+ messages in thread
From: Lee Revell @ 2004-12-28 20:38 UTC (permalink / raw)
To: Pedro Venda; +Cc: Jim Nelson, Graeme T Ford, linux lover, linux-kernel
On Sat, 2004-12-25 at 20:04 +0000, Pedro Venda wrote:
> > There are a number of good books written on the kernel - Linux Device
> > Drivers is due to have its third edition released in February. I'm glad
> > - my second edition copy is starting to look a little ragged from
> > constant reference.
>
> I must mention Robert Love's Linux Kernel Programming. I'm half-way through it,
> and I can say it is excelent!
Also essential is Uresh Vahalia's Unix Internals. It's not a Linux book
but contains detailed descriptions of many many brilliant innovations in
the history of Unix.
http://www.amazon.com/exec/obidos/tg/detail/-/0131019082/102-7569379-1814536?v=glance
Lee
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-12-28 20:38 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-25 4:20 Understanding how kernel functions works and adding new one linux lover
2004-12-25 9:09 ` Graeme T Ford
2004-12-25 13:15 ` Jim Nelson
2004-12-25 20:04 ` Pedro Venda
2004-12-28 20:38 ` Lee Revell
2004-12-26 4:16 ` sean
2004-12-26 10:00 ` Chris Ross
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox