login
Header Space

 
 

[resend and request for comments][PATCH 1/1] Removed deprecated init_module and cleanup_module functions and updated to use module_init and module_exit.

Previous thread: none

Next thread: Regarding request for Adding me into Mailing List by ravi kishore on Saturday, January 28, 2006 - 11:14 am. (40 messages)
To: <kernel-mentors@...>
Date: Wednesday, July 11, 2007 - 5:22 pm

------=_Part_12411_17838292.1184188942701
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi All,
        I just joined the group. I am reading the networking source code
along with the help of the book "The Linux TCP/IP Stack : Networking for
embedded systems" by Herbert. I was going through the code but many things
are new to me like get_cpu_var, __read_only and many more. Can anyone help
me for the simple questions that I want get answers to.

Thanks a lot
Regards
Dheeraj

------=_Part_12411_17838292.1184188942701
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi All,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I just joined the group. I am reading the networking source code along with the help of the book &amp;quot;The Linux TCP/IP Stack : Networking for embedded systems&amp;quot; by Herbert. I was going through the code but many things are new to me like get_cpu_var, __read_only and many more. Can anyone help me for the simple questions that I want get answers to. 
&lt;br&gt;&lt;br&gt;Thanks a lot&lt;br&gt;Regards&lt;br&gt;Dheeraj&lt;br&gt;

------=_Part_12411_17838292.1184188942701--
To: <kernel-mentors@...>
Date: Thursday, January 26, 2006 - 5:14 pm

Hello all,

I'm reviewing a patch and have the following CodingStyle question.

The question is, which of these two is the correct method for indentation:

	result = foo(some_long_variable_name_foo_bar_1, foo2, foo3,
		     foo4, foo5);

or

	result = foo(some_long_variable_name_foo_bar_1,
		     foo2, foo3, foo4, foo5)

?

I believe the first example is correct -- but I'm not 100% sure.

Thanks,

P.
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <kernel-mentors@...>
Date: Thursday, January 10, 2008 - 9:46 am

[Empty message]
To: <kernel-mentors@...>
Date: Thursday, April 13, 2006 - 12:45 pm

Hi,

I have attached an ethernet driver that I would like to submit for
inclusion. It's the first that I will submit as such, so could you
please comment on the code, in terms of coding style, or any
conditions you think is unacceptable?

It is for SMSC911x embedded ethernet chip which is a memory-mapped
platform device.

Many thanks,
Bahadir
To: <kernel-mentors@...>
Date: Thursday, May 18, 2006 - 9:47 pm

------=_Part_23083_12721608.1148003236098
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hello. I am a kernel newbie.
I knew the kernel-mentor site today.
Please, I hope that mentors help me to have a question in the future.

I had a one question.

I know new feature "Completions" in Linux kernel 2.6 , but I don't know
difference semaphore and completion.
I wonder that When i use completion instead of semaphore ?

------=_Part_23083_12721608.1148003236098
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

&lt;div&gt;Hello. I am a kernel newbie. &lt;/div&gt;
&lt;div&gt;I&amp;nbsp;knew the kernel-mentor site today. &lt;/div&gt;
&lt;div&gt;Please, I hope that mentors help me to have a question in the future.&lt;=
/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I had a one question. &lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I know new feature &amp;quot;Completions&amp;quot; in Linux kernel 2.6 , but I=
 don't know difference semaphore and completion. &lt;/div&gt;
&lt;div&gt;I wonder that When&amp;nbsp;i use completion instead of semaphore ?&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;

------=_Part_23083_12721608.1148003236098--
To: <kernel-mentors@...>
Date: Sunday, August 24, 2008 - 5:18 pm

------=_Part_43015_32133774.1219612730024
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi! I would like to be a kernel coder (drivers, or other things) . I know
some Python (although that probably will not be helpful), but I want to
learn to code the Kernel.

------=_Part_43015_32133774.1219612730024
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

&lt;div dir="ltr"&gt;Hi! I would like to be a kernel coder (drivers, or other things) . I know some Python (although that probably will not be helpful), but I want to learn to code the Kernel.&lt;br&gt;&lt;/div&gt;

------=_Part_43015_32133774.1219612730024--
To: <kernel-mentors@...>
Date: Monday, July 14, 2008 - 9:16 am

hello,
	how can i take up a kernel project.
regards
vibi sreenivasan


_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <linux-usb-devel@...>, <kernelnewbies-request@...>, <kernel-mentors@...>, <os_drivers@...>, <linux-kernel@...>
Date: Thursday, July 13, 2006 - 3:42 am

We've written a device driver in linux for a pcmcia card with usb and
serial functionality. I need to test this driver on a dual core/SMP
machine. We work on kernel 2.6.15.4. I have recompiled this kernel
version on my dual core machine with the CONFIG_SMP flag set during
menuconfig.

How do i ensure that my driver is making use of the SMP feature? Do
build my driver code i have a makefile in which i use the EXTRA_CFLAGS=
-D__SMP__ -DCONFIG_SMP -DLINUX.
Am i using the right flags? Do these flags really have any significance
in deciding whether the SMP capability will be exploited? Are there any
other flags i need to use while building my driver code? What does the
-jN flag mean? Should i be using it in my case.

Please guide me. I am a bit confused.

Regards

Bhuvan Mital
Project Engineer,
Wipro Technologies


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <kernel-mentors@...>
Date: Thursday, August 24, 2006 - 10:53 am

------=_Part_122390_24795918.1156431226311
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

dear sirs,

am an student yearning to get started with kernel module development and
have just joined this mailing list..
In the past i have tried my hands on programming but got too confused where
to start with finally figured out to start with device
development(wos i right?) and
got started with writing a driver of a modem (Conexant HSF 56k HSFi
Modem) but didnt get very far..

so am looking
for guidance to set course to my desire of actively participating in
development of linux kernel and
contribute to the amazing world of linux . I have been using linux
exclusively and trying to get started in linux programming..

am hoping for a positive response and suggestions are always welcome

thanks

--
cheers
Shobhit Jindal
B.Tech. Part-III,
Department Of Electronics Engineering,
Institute Of Technology,  BHU

------=_Part_122390_24795918.1156431226311
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

dear sirs,&lt;br&gt;&lt;br&gt;am an student yearning to get started with kernel module development and have just joined this mailing list..&lt;br&gt;In the past i have tried my hands on programming but got too confused where to start with finally figured out to start with device development(wos&amp;nbsp;i&amp;nbsp;right?) and got&amp;nbsp;started&amp;nbsp;with&amp;nbsp;writing&amp;nbsp;a&amp;nbsp;driver&amp;nbsp;of&amp;nbsp;a&amp;nbsp;modem&amp;nbsp;(Conexant HSF 56k HSFi Modem)&amp;nbsp;but&amp;nbsp;didnt&amp;nbsp;get&amp;nbsp;very&amp;nbsp;far..&amp;nbsp;
&lt;br&gt; &lt;br&gt;so am looking for&amp;nbsp;guidance&amp;nbsp;to&amp;nbsp;set&amp;nbsp;course&amp;nbsp;to&amp;nbsp;my&amp;nbsp;desire&amp;nbsp;of&amp;nbsp;actively&amp;nbsp;participating&amp;nbsp;in&amp;nbsp;development&amp;nbsp;of&amp;nbsp;linux&amp;nbsp;kernel&amp;nbsp;and&amp;nbsp;&lt;br&gt; contribute to the amazing...
To: <kernel-mentors@...>
Date: Sunday, September 10, 2006 - 6:40 pm

Hi,

I have finished writing/testing a new driver.

I would like to receive some help/suggestions:

1. Do I need a registered major number? Right now the driver uses
alloc_chrdev_region() to get some free major. Also, I have seen a
/dev/lcd device (Description: "Front panel LCD") already in the
official list, but I don't know if that device means small LCD Screens
like the cfag12864b.

2. The driver uses a script for start (create devices, insmod...) and
stop (remove devices, rmmod). If I add it to the kernel, they have to
dissapear, and the programmer who wants to use the driver will have to
create the device manually. Is this right? Should I do anything else?

3. Because I haven't found any other driver like mine, should I create
a new subdirectory, like drivers/lcd/, create a general Makefile and
Kconfig, and then put my driver at drivers/lcd/cfag12864b?


Thank you,

       Miguel Ojeda
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <kernel-mentors@...>
Date: Tuesday, March 25, 2008 - 8:07 am

--mimepart_47e8eb029460a_7d9b1734ea061cfc2559ec
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: Quoted-printable
Content-Disposition: inline

Hi kernel-mentors@selenic.com,&lt;br/&gt;&lt;br/&gt; =


jim.cromie@gmail.com has invited you to Spokeo,
which finds your friends' updates across the Web.

On average, Spokeo finds 87 friends across 30 different social
networks. See what Spokeo can find for you now!

Click http://www.spokeo.com/public/join?c=3De32c7c5f5294867946c118ccdf965=
9a772683f5e to accept your invitation.



-----
This invitation was sent with jim.cromie's approval.
If you wish to opt out of all future emails, go to http://www.spokeo.com/=
optout?c=3Dk495354544951515349

Copyright (c) 2008 Spokeo, Inc. All rights reserved.
1685 Plymouth Street #200, Mountain View, CA 94043=

--mimepart_47e8eb029460a_7d9b1734ea061cfc2559ec
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: Quoted-printable
Content-Disposition: inline

Hi kernel-mentors@selenic.com,&lt;br/&gt;&lt;br/&gt;
&lt;a href=3D"mailto:jim.cromie@gmail.com" style=3D"color:#000;text-decorati=
on:none;"&gt;jim.cromie@gmail.com&lt;/a&gt; has invited you to Spokeo,&lt;br/&gt;
which finds your friends' updates across the Web.
&lt;br/&gt;&lt;br/&gt;

  On average, Spokeo finds 87 friends across 30 different social&lt;br/&gt;
  networks. See what Spokeo can find for you now!

&lt;br/&gt;&lt;br/&gt;
&lt;a href=3D"http://www.spokeo.com/public/join?c=3De32c7c5f5294867946c118cc=

&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;hr/&gt;
&lt;span style=3D"color:#888;font-size:0.8em;"&gt;
  This invitation was sent with jim.cromie's approval.&lt;br/&gt;
  If you wish to opt out of all future emails, &lt;a href=3D"http://www.spok=
eo.com/optout?c=3Dk495354544951515349" style=3D"color:#888;text-decoratio=
n:underline;"&gt;click here&lt;/a&gt;.
  &lt;br/&gt;&lt;br/&gt;
  Copyright &amp;copy; 2008 Spokeo, Inc. All rights reserved.&lt;br/&gt;
  1685 Plymouth Street #200, Mountain View, CA 9...
To: <kernel-mentors@...>
Cc: <dynsched-devel@...>
Date: Saturday, November 18, 2006 - 11:29 am

Hi,

we're a student group witch is working on a research project concerning
the ability to switch the cpu scheduler of the linux kernel at runtime.
We use Peter Williams Plugsched patch [1] to get an interface for the
different scheduler implementations. Some month ago we started to modify
the code to allow different scheduler running on each cpu on an SMP
system. The cpu&lt;-&gt;scheduler mapping is controlled via cpusets. Thus you
can switch the scheduler for a whole cpuset containing multiple cpus and
keep the rest untouched.

The project is hosted on Sourceforge [2] and the current patch applies
against 2.6.18 patched with plugsched.

Threre are still lots of issues - especially the migration of tasks
between cpus with different schedulers is quite buggy (not for ingosched
and ingo_ll (low latency) they've ot  the same runqueue layout ;-)).
Switching the scheduler on up configured systems works fine. Refer the
project instruction site [3] for further infomation and usage
instructions.

Theres currently no code in the sf svn due svn server errors - common
problem and the sf team is working on. 

We would be quite happy, if someone could take a look at what we've done
to gain some feedback/suggestions about the used techniques and
implementation.

The project dokumentation (description/benchmarks/usage/bugs) is in
progress and will be completed in about 4 weeks.

Thanks a lot.

cheers,

Felix



[1] http://sourceforge.net/projects/cpuse/
[2] http://sourceforge.net/projects/dynsched/
[3] http://dynsched.sourceforge.net
-- 
Felix Obenhuber felixatobenhuber.de
www.obenhuber.de/felix
GPG: F696D489
Sat Nov 18 15:56:31 CET 2006
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <linux-kernel@...>, <philb@...>, <bzolnier@...>, <airlied@...>, <paul@...>, <James.Bottomley@...>, <linux-janitors@...>, <kernel-mentors@...>, <trivial@...>
Date: Thursday, February 28, 2008 - 12:16 am

From: Jon Schindler &lt;jkschind@gmail.com&gt;
I apologize, there was an error in the original patch.  As this is the first patch I have submitted,
please let me know if there are any errors that I have made or tips that I can follow for next time.

As part of the kernel janitor projected listed at http://kernelnewbies.org/KernelJanitors/Todo/ApiChanges 
I have made the following changes:
-prototypes for init_module were replaced with static function definitions
that are exported using module_init()
-prototypes exported using cleanup_module(void) were replaced with a
static internal function that is exported through module_exit().

The following files are affected:
drivers/block/floppy.c
drivers/block/ps2esdi.c
drivers/char/drm/drm_drv.c
drivers/char/ip2/ip2main.c
drivers/ide/ide.c
drivers/net/3c501.c
drivers/net/3c505.c
drivers/net/3c507.c
drivers/net/3c515.c
drivers/net/3c523.c
drivers/net/3c527.c
drivers/net/82596.c

Signed-off-by: Jon Schindler &lt;jkschind@gmail.com&gt;
--- 
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 32c79a5..9a3d509 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -4528,14 +4528,15 @@ static void __init parse_floppy_cfg_string(char *cfg)
 	}
 }http://kernelnewbies.org/KernelJanitors/Todo/ApiChanges
 
-int __init init_module(void)
+static int __init floppy_module_init(void)
 {
 	if (floppy)
 		parse_floppy_cfg_string(floppy);
 	return floppy_init();
 }
+module_init(floppy_module_init);
 
-void cleanup_module(void)
+static void __exit floppy_module_exit(void)
 {
 	int drive;
 
@@ -4567,6 +4568,7 @@ void cleanup_module(void)
 
 	wait_for_completion(&amp;device_release);
 }
+module_exit(floppy_module_exit);
 
 module_param(floppy, charp, 0);
 module_param(FLOPPY_IRQ, int, 0);removed some deprecated api calls.
diff --git a/drivers/block/ps2esdi.c b/drivers/block/ps2esdi.c
index 3c796e2..edcd150 100644
--- a/drivers/block/ps2esdi.c
+++ b/drivers/block/ps2esdi.c
@@ -135,7 +135,7 @@ static struct...
To: <kernel-mentors@...>
Date: Sunday, December 10, 2006 - 10:26 am

I have come across an ext2 compression project (e2compr.sf.net). I see it is not yet incorporated into the main kernel. Why is it so?

I would also like to know whether there have been any previous efforts to implement filesystem compression at VFS level for the underlying filesystems that can support it. I am interested in implementing this. I am also new to kernel programming. Can I get any suggestions regarding this?

KK




 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <kernel-mentors@...>
Date: Monday, November 10, 2008 - 1:39 pm

Hello,

I'm pretty new to kernel-development, but I would like to write a filesystem like UnionFS, but much much smaller.
With the current kernel most existing tutorials like rkfs are broken and I did not succeed in trying to clone ramfs as a starting point - so I don't know, where to start.
I hope it's right to post here.

I wanted to start with a lightweight fs, that forwards all calls to an existing fs and only prints some logging messages from the wrapper-functions. The configuration should work with fstab.

Can anybody shine me a light, on where and how to start?
I already read lots of the kernel docs, as well as other fs-sources, but the existing fs are to complex to serve as a starting point and from docs I did not find answers for my questions:
- how can I find the superblock of the device, when I only have a mountpoint-path from fstab?
- or how can I do a path resolution of an absolute path-string from inside of a module/fs ?
- how can I mount another fs from a module (may be separate thread), when I only have the /dev/xxx, fstype and an optionstring from fstab?
- what is the prefferable way to communicate with userspace: /proc, /config or building a new virtual fs?

Any hint is appreciated.

kind regards

Santiago
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <kernel-mentors@...>
Date: Sunday, January 28, 2007 - 4:07 pm

Hello,

I am trying understand the swap. I would like to know which is the
maximum swap size on i386. Is 64 MB? If yes, how to know the origin of
this "magic" number? I don't found it (Internet).

Thanks in advance.

Eriberto - Brazil

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <Kernel-mentors@...>
Subject: (no subject)
Date: Wednesday, February 21, 2007 - 6:28 am

This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C755D1.2F5B0AD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

How to attach a patch to kernel
------=_NextPart_000_0013_01C755D1.2F5B0AD0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1"&gt;
&lt;META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR&gt;
&lt;STYLE&gt;&lt;/STYLE&gt;
&lt;/HEAD&gt;
&lt;BODY bgColor=3D#ffffff&gt;
&lt;DIV&gt;&lt;FONT face=3DArial size=3D2&gt;How to attach a patch to=20
kernel&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;

------=_NextPart_000_0013_01C755D1.2F5B0AD0--
To: <Kernel-mentors@...>
Date: Wednesday, April 18, 2007 - 4:40 am

------=_Part_82500_28563908.1176885634399
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

 Hi  folks,
     I am interested in programming of driver or embeded system. I have made
a little toolkit in linux kernel mode which dedicated to share memory in WAN
area. And I have a project experienced to build a rpc system in embeded
system.

     So , I want to further my understanding to driver and embeded system
,but I do not know where I can join a active driver or embeded projects.
Please do not hesitate to tell me about it if you know.

    thanks very much.

------=_Part_82500_28563908.1176885634399
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

&lt;div&gt;
&lt;div&gt;Hi&amp;nbsp; folks,&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am interested in&amp;nbsp;programming of driver or embeded system. I have&amp;nbsp;made a&amp;nbsp;little toolkit in linux kernel mode which dedicated to share memory in WAN area. And I have a project experienced to build a rpc system in embeded system. 
&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; So , I want to further my&amp;nbsp;understanding to driver and embeded system ,but I do not know&amp;nbsp;where&amp;nbsp;I can&amp;nbsp;join a active driver or embeded projects. Please do not hesitate to tell me about it if you know.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks very much.&lt;/div&gt;&lt;/div&gt;

------=_Part_82500_28563908.1176885634399--
To: <kernel-mentors@...>
Date: Thursday, November 22, 2007 - 4:06 am

This is a multi-part message in MIME format.

------_=_NextPart_001_01C82CDE.852E8FD5
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have wrote a module and compiled it for 10 out of the 24 revisions of =
the 2.6 kernel. However, I haven't checked with different major option =
combinations (PREEMPT, 4KSTACKS, SMP or not).

=20

What is the right way and the tools to get a build and test system that =
would compile for many kernel revisions, each of which with various =
options combinations and potentially test them using VMWare scripting?

=20

=20

=20


------_=_NextPart_001_01C82CDE.852E8FD5
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

&lt;html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"&gt;

&lt;head&gt;
&lt;meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1"&gt;
&lt;meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"&gt;
&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.S...
To: Razvan Deaconescu <razvan@...>
Cc: Linux Newbies <kernelnewbies@...>, mentors <kernel-mentors@...>, janitors <kernel-janitors@...>
Date: Monday, May 14, 2007 - 4:12 am

------=_Part_144381_32797258.1179130375090
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline



You are right indeed, static does have internal linkage.
Messed that up though :-(.

But why would we want
to issues warning only once and not each time the socket is created
for SOCK_PAKCET type?

Thanks for correcting Razvan.

~psr








-- 
play the game

------=_Part_144381_32797258.1179130375090
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;span class="gmail_quote"&gt;On 5/14/07, &lt;b class="gmail_sendername"&gt;Razvan Deaconescu&lt;/b&gt; &amp;lt;&lt;a href="mailto:razvan@anaconda.cs.pub.ro" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"&gt;razvan@anaconda.cs.pub.ro 
&lt;/a&gt;&amp;gt; wrote:&lt;/span&gt;&lt;blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex"&gt;
  pradeep singh wrote:&lt;br&gt;&amp;gt; Hi All,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; the __sock_create in net/socket.c has the following code snippet.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; if (family == PF_INET &amp;amp;&amp;amp; type == SOCK_PACKET) {&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;static int warned;  
&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!warned) {&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; warned = 1;&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk(KERN_INFO &amp;quot;%s uses obsolete (PF_INET,SOCK_PACKET)\n&amp;quot;,&lt;br&gt;&amp;gt; current-&amp;gt;comm);&lt;br&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...
To: <kernel-mentors@...>
Date: Friday, October 5, 2007 - 11:10 pm

------=_Part_10831_23395098.1191640223472
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi everyone,
I thought I d submit this patch here first, to see if I m doing the right
thing. I do also have a couple of questions:
Below is the email I d like to send to the LKML for inclusion in the kernel.
- Is is appropriately formatted ? (I tried following the guidelines in
SubmittingPatches as closely as possible)
- is the patch correctly generated ? Are the changes to Kconfig and Makefile
to be included in the patch (like I did) ?
- Is the email title OK ? (not really sure what subsystem I should use:
"char" , "watchdog", "device drivers", ... ?)

All comments are welcome.
Cheers,
Gilles


from: Gilles Gigan &lt;gilles.gigan@gmail.com&gt;

Adds watchdog driver for EPIC Nano 7240 single board computers from IEI

Signed-off-by: Gilles Gigan &lt;gilles.gigan@gmail.com&gt;
---

diff -uprN -X linux-2.6.23-rc9/Documentation/dontdiff
linux-2.6.23-rc9/drivers/char/watchdog/Kconfig
linux-2.6.23-rc9-dirty/drivers/char/watchdog/Kconfig
--- linux-2.6.23-rc9/drivers/char/watchdog/Kconfig 2007-10-06 01:43:
44.000000000 +1000
+++ linux-2.6.23-rc9-dirty/drivers/char/watchdog/Kconfig 2007-10-06 02:23:
28.000000000 +1000
@@ -455,6 +455,19 @@ config SBC8360_WDT

  Most people will say N.

+config SBC7240_WDT
+ tristate "SBC Nano 7240 Watchdog Timer"
+ depends on X86
+ ---help---
+   This is the driver for the hardware watchdog found on the IEI
+   single board computers EPIC Nano 7240 (and likely others). This
+   watchdog simply watches your kernel to make sure it doesn't freeze,
+   and if it does, it reboots your computer after a certain amount of
+   time.
+
+   To compile this driver as a module, choose M here: the
+   module will be called sbc7240_wdt.
+
config CPU5_WDT
tristate "SMA CPU5 Watchdog"
depends on X86
diff -uprN -X linux-2.6.23-rc9/Documentation/dontdiff
linux-2.6.23-rc9/drivers/char/watchdog/Makefile
linu...
To: Joe moo <starquestnerd@...>
Cc: <kernel-mentors@...>
Date: Monday, August 25, 2008 - 9:09 am

Hi Joe,


Check the list archive for a similar question "Help: taking up a kernel project"
here: http://news.gmane.org/gmane.linux.kernel.mentors

You may also need to study a theoretical OS book first, depending on
your current familiarity with operating systems internals

Best of Luck
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <vibi_sreenivasan@...>
Cc: <kernel-mentors@...>
Date: Tuesday, July 15, 2008 - 8:32 am

Hi!,

On Mon, Jul 14, 2008 at 4:16 PM, vibi sreenivasan

Check kernel newbies website, http://kernelnewbies.org/.

If you're completely new, I guess starting with the Linux Device
Drivers book (v3) and writing some drivers here and there will be a
great entrance to kernel development and its interfaces in general.

Testing linux-next git tree, following LKML and checking out LWN.net
kernel pages regularly will give you great insights about what's going
on. Once you're there, you can have a big list of projects and ideas
to work on.

Past experiences in low-level C development, Unix administrations and
overall Linux distributions internals (empirical Linux-fu) will be a
great help (Personally, I consider them a bit of a pre-requisite but
not all of the devs believe so).

Regards

-- 
Ahmed S. Darwish
Homepage: http://darwish.07.googlepages.com
Blog: http://darwish-07.blogspot.com
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: François-Frédéric <ff@...>, <kernel-mentors@...>
Cc: Jure <jure.rastic@...>
Date: Thursday, November 22, 2007 - 9:41 am

Hi,

we are working on a test framework that could potentially be useful to
you. We are already using it though it's in an early stage of the
development. I added main developer into CC so that he can help you use
this framework in case you wish to try it.

Stjepan

P.S. The link for the suite is

http://lusca.zemris.fer.hr



_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Gilles GIGAN <djails@...>
Cc: <kernel-mentors@...>
Date: Saturday, October 6, 2007 - 12:02 am

On Sat, Oct 06, 2007 at 01:10:23PM +1000, Gilles GIGAN wrote:
 &gt; Hi everyone,
 &gt; I thought I d submit this patch here first, to see if I m doing the right
 &gt; thing. I do also have a couple of questions:
 &gt; Below is the email I d like to send to the LKML for inclusion in the kernel.
 &gt; - Is is appropriately formatted ? (I tried following the guidelines in
 &gt; SubmittingPatches as closely as possible)

Unfortunatly gmail mangled it. It's word-wrapped and white-space damaged
so will never apply.  Maybe there's some options in the gmail UI you can
change to make this not happen.  Test it by sending the patch to
yourself first, and see if you can get it to apply with patch(1).

 &gt; - is the patch correctly generated ? Are the changes to Kconfig and Makefile
 &gt; to be included in the patch (like I did) ?
 &gt; - Is the email title OK ? (not really sure what subsystem I should use:
 &gt; "char" , "watchdog", "device drivers", ... ?)

'watchdog' sounds sane. Remember to Cc the watchdog maintainer too
Wim Van Sebroeck &lt;wim@iguana.be&gt;  (He may have more specific comments).

Some minor nits..

 &gt; +config SBC7240_WDT
 &gt; + tristate "SBC Nano 7240 Watchdog Timer"
 &gt; + depends on X86

Unless your SBC is 64bit, changing this to X86_32 might make sense,
to stop it showing up for everyone building 64bit kernels.

 &gt; +static unsigned long wdt_status = 0;

You don't need to initialise static vars to 0. They'll go into .bss,
and will be auto-zeroed.

 &gt; + // is there a magic char ?

Use /* */ rather than c++ style comments.

 &gt; + printk(KERN_INFO PREFIX "Removing watchog\n");

Typo.

 &gt; + //The  IO port 0x043 is already claimed by the system timer

C++ comments again.
Also, how does the wdt_disable() work if 0x43 is the system timer?
We're going to poke that rather than the watchdog won't we?

That explains why all this is disabled...

 &gt; +//      release_region(DISABLE_SBC7240_PORT,1);

 ...

 &gt; +/* if (!request_region(DISABL...
To: Dave Jones <davej@...>
Cc: <kernel-mentors@...>
Date: Saturday, October 6, 2007 - 1:27 am

I've never heard of anyone successfully using the gmail GUI
for sending patches (other than by using attachments).

gmail also split some long lines for you at places that make


Yes, e.g.:  watchdog: add Nano 7240 driver


+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.

Wasn't there a decision that the kernel is only GPL v2 (modified)?

---
~Randy
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Randy Dunlap <rdunlap@...>
Cc: <kernel-mentors@...>
Date: Saturday, October 6, 2007 - 4:24 pm

On Fri, 5 Oct 2007 22:27:36 -0700

No.

Linus said that his portion was V2 (unmodified btw)... but that others
are free to dual license or use V2 or later as is done here...

Greetings,
   Arjan van de Ven
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Dheeraj Kandula <dheerajkandula@...>
Cc: <kernel-mentors@...>
Date: Wednesday, July 11, 2007 - 9:55 pm

Hi,

This list is more for review of code that is nearly ready for
submittal, so that the author(s) can receive code reviews and
feedback/suggestions on it.  See http://kernelnewbies.org/KernelMentors .

You should probably ask your questions on the kernelnewbies mailing list.
http://kernelnewbies.org/ML

Thanks,
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: pradeep singh <2500.pradeep@...>
Cc: Linux Newbies <kernelnewbies@...>, mentors <kernel-mentors@...>, Razvan Deaconescu <razvan@...>, janitors <kernel-janitors@...>
Date: Monday, May 14, 2007 - 11:10 am

because then a normal user can overflood the system log ;)



_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Arjan van de Ven <arjan@...>
Cc: Linux Newbies <kernelnewbies@...>, mentors <kernel-mentors@...>, Razvan Deaconescu <razvan@...>, janitors <kernel-janitors@...>
Date: Tuesday, May 15, 2007 - 1:09 am

------=_Part_157313_6500281.1179205776102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline



Oh, that explains a lot.
Thank you Arjan.
~psr




-- 
play the game

------=_Part_157313_6500281.1179205776102
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;span class="gmail_quote"&gt;On 5/14/07, &lt;b class="gmail_sendername"&gt;Arjan van de Ven&lt;/b&gt; &amp;lt;&lt;a href="mailto:arjan@infradead.org"&gt;arjan@infradead.org&lt;/a&gt;&amp;gt; wrote:&lt;/span&gt;&lt;blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex"&gt;
On Mon, 2007-05-14 at 13:42 +0530, pradeep singh wrote:&lt;br&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; But why would we want&lt;br&gt;&amp;gt; to issues warning only once and not each time the socket is created for SOCK_PAKCET type?&lt;br&gt;&lt;br&gt;because then a normal user can overflood the system log ;)
&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Oh,&amp;nbsp;that&amp;nbsp;explains&amp;nbsp;a&amp;nbsp;lot.&lt;br&gt;Thank&amp;nbsp;you&amp;nbsp;Arjan.&lt;br&gt;~psr&amp;nbsp;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear="all"&gt;&lt;br&gt;-- &lt;br&gt;play the game 

------=_Part_157313_6500281.1179205776102--
To: Arjan van de Ven <arjan@...>
Cc: Linux Newbies <kernelnewbies@...>, janitors <kernel-janitors@...>, Razvan Deaconescu <razvan@...>, mentors <kernel-mentors@...>
Date: Monday, May 14, 2007 - 6:51 pm

they can do that anyhow:

main()
{
    for (;;) {
        if (!fork())
	    *(char*)(0ul) = 1;
        sleep(1);
    }
}

would probably work pretty well on some platforms to overflow the
system log and not go noticed... (i'm sure if you look there are lots
of ways a local user can do similar things)

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Jiancong Xie <jianc.xie@...>
Cc: <Kernel-mentors@...>
Date: Friday, April 20, 2007 - 2:20 pm

some tips on how to join a project of your choice (I'll let others
suggest projects):

* subscribe to the mailing list
* read it for a short while (a week or two) to get used to the style and
"atmosphere" of the list (eg what are the customs, who are the people
who know what they are talking about etc)
* after this short "get to know the environment" period, start
participating on the list, for example by answering questions that are
asked by people and to which you know (part of) the answer.
* after some more time, start participating in technical discussions
* then start contributing code/ideas

the last 3 are important, the mailing list participation is there so
that the other people get to know you and trust you as someone who is
serious and knowledgable about the topic, which then later helps you
when you post code or ideas. After all, people are more likely to review
code or ideas from someone they already know and trust to a degree, and
who follows the local customs, than from someone who suddenly comes out
of the blue and they don't know at all...


_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Jiancong Xie <jianc.xie@...>
Cc: <Kernel-mentors@...>
Date: Wednesday, April 18, 2007 - 12:41 pm

-----BEGIN PGP SIGNED MESSAGE-----

you might want to take a look at the openwrt.org project. It's about alternative
firmware for mips and arm based home wlan routers.

Cheers,

Felix
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGJkovR7ikofaW1IkRAoNbAJ49u8RyokVdrXKIZQnFxWV4gg8DfwCdHUZU
cRQim193WI1HLRkwpcTaHTw=
=/hlM
-----END PGP SIGNATURE-----
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: chandrashekhar <chandrasrk@...>
Cc: <Kernel-mentors@...>
Date: Wednesday, February 21, 2007 - 4:56 pm

Can you explain more about what you want to do?

We prefer to see patches sent as inline text rather than as
attachments (although some mail clients mangle inline text,
so that wouldn't be good either).

Here are some references for you:

http://linux.yyz.us/patch-format.html
http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt

and in current kernel source tree:
Documentation/SubmittingPatches
Documentation/SubmittingDrivers
Documentation/SubmitChecklist
Documentation/CodingStyle


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: chandrashekhar <chandrasrk@...>
Cc: <Kernel-mentors@...>
Date: Wednesday, February 21, 2007 - 4:45 pm

Try reading Documentation/HOWTO to get an overview of how to do this.

good luck,

greg k-h
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <kernel-mentors@...>
Date: Monday, January 29, 2007 - 3:24 am

This is what I found on the net.

x86		            2 Gigabytes
PowerPC		    2 Gigabytes
Motorola 680x0    2 Gigabytes
Sparc		    1 Gigabyte
MIPS		            512 Megabytes
Alpha		    128 Gigabytes
UltraSparc	    3 Terabytes

Resource: maybe useful.
http://www-128.ibm.com/developerworks/linux/library/l-swaptip2.html

Feel free to correct me if I'm wrong or read this differently.
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Tony Clayton <tonyo.c@...>
Cc: <kernel-mentors@...>
Date: Wednesday, January 31, 2007 - 6:38 am

this is not correct; you can go a LOT higher than that.... I know 128Gb
works, I've not tried more (but then again, if you need that much you
have some really serious problem in the first place)

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: kishore <a_k_kishore@...>
Cc: <kernel-mentors@...>
Date: Monday, December 11, 2006 - 12:09 am

e2compr has a long history of work on it, and then abandonment.    
AFAIK the code never became stable enough for general use let alone  
become eligible for the mainline kernel.  The last time I looked at  
the project it was abandoned, and it  certainly won't work on any  
recent kernel.  The current emphasis is on ext4 development, and  
anything that  affects the stability of ext2/ext3 (other than  
maintanence) I don't think will be particularly welcome in the  

There's been two approaches to filesystem compression in Linux,  
compressed filesystems (Squashfs, Cramfs, JFFS2), and compressed  
block devices (cloop).  I personally don't think the VFS should  
handle compression, to do compression efficiently it requires  
detailed knowledge of the filesystem layout, which the VFS doesn't  
want to know about.

Phillip

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Miguel Ojeda <maxextreme@...>
Cc: <kernel-mentors@...>
Date: Monday, September 11, 2006 - 5:31 am

if you don't support the same ioctls you want to use a different name
and device number. If you don't do that you will confuse applications
that expect the other device driver to be on the other side, including

not if you hook into the driver model properly; then udev will
automatically create the device node for you. If you only do 1 device
node, you could make it a "misc" device, the misc character device layer
will take care of the driver model for you already, so the device node

are you really really sure? it's a char driver, if there is only one
stick it in drivers/char .....
(one directory per driver isn't really scalable ;)
If it turns out later that a whole bunch more come to exist, it's easy
to then create a directory and move stuff over.

Greetings,
    Arjan van de Ven

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Arjan van de Ven <arjan@...>
Cc: <kernel-mentors@...>
Date: Monday, September 11, 2006 - 6:45 pm

Thank you for your time.

I solved it creating a class: /sys/class/display that will contain all
the additional small screens, like the LCD ones.

Then, udev will create the device automatically (if built-in).

And finally I created a drivers/display folder where my driver and all
future drivers should be. New drivers should use the class the same
way.

I think other people could code new drivers. There are a _lot_ of LCD
Controllers and LCD displays... Simply it's not so famous yet, but
people in Windows, with programs like LCDInfo, LCDStudio, and so on
are having fun with them. I wished the same functionality for our
Linux ;) And now, with a working driver, maybe someone will try it in
Linux, and maybe other programmers code new display drivers. The first
step is done.

I have tested it and works fine. I have sent the patch to linux-kernel already.

Thank you again for your help :)

        Miguel Ojeda
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Miguel Ojeda <maxextreme@...>
Cc: <kernel-mentors@...>
Date: Monday, September 11, 2006 - 11:39 pm

That's a pretty generic name.  People will think it means monitor stuff

Most all of the lcd stuff works through a serial interface, so no kernel
drivers are needed.

thanks,

greg k-h
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Shobhit Jindal <shobhit.jindal@...>
Cc: <kernel-mentors@...>
Date: Thursday, August 24, 2006 - 1:05 pm

Take a look at the goals of this ML:
http://www.selenic.com/pipermail/kernel-mentors/2005-April/000000.html

from what youve said, you dont have a specific piece of code to
'get ready for submission', but are seeking more of an orientation.
For that, http://kernelnewbies.org/  is a better place.
Or if you want to jump right in and code, http://www.kerneljanitors.org/

They both have active mailing lists, and give 2 separate and useful 
perspectives

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
Cc: <kernel-mentors@...>
Date: Friday, August 25, 2006 - 2:13 am

------=_Part_80423_3173627.1156486403035
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Go to tldp.org. Check out the ebook on kernel modules programming guide.




-- 


With warm regards,
Vivek. J. Joshi.

vivek.j.joshi@gmail.com

----All science is either physics or stamp collecting.
                -- Ernest Rutherford

------=_Part_80423_3173627.1156486403035
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Go to &lt;a href="http://tldp.org"&gt;tldp.org&lt;/a&gt;. Check out the ebook on kernel modules programming guide. &lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;span class="gmail_quote"&gt;On 8/24/06, &lt;b class="gmail_sendername"&gt;Jim Cromie&lt;/b&gt; &amp;lt;&lt;a href="mailto:jim.cromie@gmail.com"&gt;
jim.cromie@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;/span&gt;&lt;blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"&gt;Shobhit Jindal wrote:&lt;br&gt;&amp;gt; dear sirs,&lt;br&gt;&amp;gt;&lt;br&gt;
&amp;gt; am an student yearning to get started with kernel module development&lt;br&gt;&amp;gt; and have just joined this mailing list..&lt;br&gt;&amp;gt; In the past i have tried my hands on programming but got too confused&lt;br&gt;&amp;gt; where to start with finally figured out to start with device
&lt;br&gt;&amp;gt; development(wos i right?) and&lt;br&gt;&amp;gt; got started with writing a driver of a modem (Conexant HSF 56k HSFi&lt;br&gt;&amp;gt; Modem) but didnt get very far..&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; so am looking&lt;br&gt;&amp;gt; for guidance to set course to my desire of actively participating in development of linux kernel and
&lt;br&gt;&amp;gt; contribute to the amazing world of linux . I have been using linux&lt;br&gt;&amp;gt; exclusively and trying to get started in linux programming..&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; am hoping for a positive response and sugge...
To: <bhuvan.kumarmital@...>
Cc: <kernelnewbies-request@...>, <kernel-mentors@...>, <os_drivers@...>, <linux-usb-devel@...>, <linux-kernel@...>
Date: Thursday, July 13, 2006 - 3:45 am

NO!

You should just use a normal KBuild makefile, and not ever add any extra
cflags....

(but you failed to provide a URL to even your Makefile but also to your
code so it's hard to give you a detailed recommendation)

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: minchan Kim <barrioskmc@...>
Cc: <kernel-mentors@...>
Date: Thursday, May 18, 2006 - 10:32 pm

Some googling finds that LWN did a nice little write up on completions:

	http://lwn.net/Articles/23993/

Hope it helps.

- z
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: minchan Kim <barrioskmc@...>
Cc: <kernel-mentors@...>
Date: Thursday, May 18, 2006 - 10:02 pm

they're different usage patterns:

the basic completion pattern is when you set something up that at some
point in the future gets finished, for example, you could schedule a
disk IO, and when the IO actually finishes, the completion would be
called. Eg there generally is a "task" that at some point gets
'completed'.

A semaphore.. isn't used much anymore, a mutex is used instead.
A mutex is basically a short term exclusion tool, eg the pattern is

&lt;take mutex&gt;
&lt;do some actions&gt;
&lt;release mutex&gt;

unlike completions, there is a strong sense of "who takes the mutex
releases it", and the there is a well defined task "in the middle",
while for completions it is "something else finishes it".

Does this help?


_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Arjan van de Ven <arjan@...>
Cc: <kernel-mentors@...>
Date: Thursday, May 18, 2006 - 11:41 pm

Thanks to your commenting.

I understand your point.  But I see the book "Understanding of the
Linux Kernel", it says "Semaphore happen race condition problem in the
SMP envirioment since call up and down concurrency. But Completion
isn't"

I don't understand it. Do you understand it?




_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: minchan Kim <barrioskmc@...>
Cc: <kernel-mentors@...>
Date: Friday, May 19, 2006 - 8:52 am

I think they mean that semaphores will cause exclusion (but really, use
mutexes, much easier and they are replacing semaphores), while
completions do not cause exclusion...

eg you can use a mutex to prevent concurrent access (as the code snippet
I gave you before shows), while a completion really doesn't do that.
The book too artifically tries to tie these concepts together by trying
to explain the difference in a micro scale, but that's wrong.
They are ENTIRELY different things. Not even comparable. So saying
"they're different in &lt;this tiny detail&gt;" sort of implies they're
similar constructs in many other ways. They are not. Don't even think
they are. 

(having said that, some people used to abuse semaphores to do a
completion type of behavior, which is where the confusion is coming
from, but just don't do that or even focus on that, it's like using the
back of a book to drive a nail in the wall and then ask "what's the
difference between a book and a hammer since I now have both". The
answer is "who cares. Just use the hammer for your own sanity" :)


_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: Arjan van de Ven <arjan@...>
Cc: <kernel-mentors@...>
Date: Friday, May 19, 2006 - 9:52 am

------=_Part_686_30276318.1148046752957
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Thank you. Your comments help me so much.
It seems to solve my question between completion and semaphore.

Have a nice day.




------=_Part_686_30276318.1148046752957
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

&lt;div&gt;Thank you. Your comments help me so much. &lt;/div&gt;
&lt;div&gt;It seems to solve my question between completion and semaphore. &lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Have a nice day.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=3D"gmail_quote"&gt;On 5/19/06, &lt;b class=3D"gmail_sendername"&gt;=
Arjan van de Ven&lt;/b&gt; &amp;lt;&lt;a href=3D"mailto:arjan@infradead.org"&gt;arjan@infra=
dead.org&lt;/a&gt;&amp;gt; wrote:&lt;/span&gt;
&lt;blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0=
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"&gt;On Fri, 2006-05-19 at 12:41 +090=
0, minchan Kim wrote:&lt;br&gt;&amp;gt; Thanks to your commenting.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I =
understand your point.&amp;nbsp;&amp;nbsp;But I see the book &amp;quot;Understanding of=
 the
&lt;br&gt;&amp;gt; Linux Kernel&amp;quot;, it says &amp;quot;Semaphore happen race condition =
problem in the&lt;br&gt;&amp;gt; SMP envirioment since call up and down concurrency. =
But Completion&lt;br&gt;&amp;gt; isn't&amp;quot;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I don't understand it. D=
o you understand it?
&lt;br&gt;&lt;br&gt;I think they mean that semaphores will cause exclusion (but really,=
 use&lt;br&gt;mutexes, much easier and they are replacing semaphores), while&lt;br&gt;c=
ompletions do not cause exclusion...&lt;br&gt;&lt;br&gt;eg you can use a mutex to preve=
nt concurrent access (as the code snippet
ENTIRELY different things. Not even comparable. So...
To: Bahadir Balban <bahadir.balban@...>
Cc: <kernel-mentors@...>, <dustin@...>
Date: Friday, April 14, 2006 - 2:07 pm

&gt;&gt;&gt;&gt;&gt; "Bahadir" == Bahadir Balban &lt;bahadir.balban@gmail.com&gt; writes:

Hi,

 Bahadir&gt; I have attached an ethernet driver that I would like to submit for
 Bahadir&gt; inclusion. It's the first that I will submit as such, so could you
 Bahadir&gt; please comment on the code, in terms of coding style, or any
 Bahadir&gt; conditions you think is unacceptable?

I would suggest you base your work on Dustin McIntire's driver instead
of the SMSC example.

http://thread.gmane.org/gmane.linux.ports.arm.kernel/23405/

Dustin: Any progress on pushing it to mainline?

-- 
Bye, Peter Korsgaard
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: 'Peter Korsgaard' <jacmet@...>, 'Bahadir Balban' <bahadir.balban@...>
Cc: <kernel-mentors@...>
Date: Monday, April 17, 2006 - 9:31 pm

Hi Peter,
I've submitted the driver up the food chain and it is currently awaiting
comments on lkml and from the net driver maintainer.  I'll let you know when
I hear back about suitability for inclusion.


_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <dustin@...>
Cc: <kernel-mentors@...>, 'Bahadir Balban' <bahadir.balban@...>
Date: Sunday, April 23, 2006 - 2:54 pm

&gt;&gt;&gt;&gt;&gt; "Dustin" == Dustin McIntire &lt;dustin@sensoria.com&gt; writes:

Hi,

 Dustin&gt; I've submitted the driver up the food chain and it is
 Dustin&gt; currently awaiting comments on lkml and from the net driver
 Dustin&gt; maintainer.

Cool! I must have missed that, and I don't seem to have any luck on
google at the moment - Do you have a link to the thread?

-- 
Bye, Peter Korsgaard
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: 'Peter Korsgaard' <jacmet@...>
Cc: <kernel-mentors@...>, 'Bahadir Balban' <bahadir.balban@...>
Date: Sunday, April 23, 2006 - 3:35 pm

Hi Peter,
I've copied a reply message I received a few days ago regarding the driver status.

 

-----Original Message-----
From: akpm@osdl.org [mailto:akpm@osdl.org] 
Sent: Friday, April 21, 2006 2:52 PM
To: dustin@sensoria.com; jeff@garzik.org; mm-commits@vger.kernel.org
Subject: - net-driver-add-support-for-smsc-lan911x-line-of-ethernet-chips.patch removed from -mm tree


The patch titled

     net driver: Add support for SMSC LAN911x line of ethernet chips

has been removed from the -mm tree.  Its filename is

     net-driver-add-support-for-smsc-lan911x-line-of-ethernet-chips.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.


From: "Dustin McIntire" &lt;dustin@sensoria.com&gt;

New net driver.  Only tested on ARM.

Signed-off-by: Dustin McIntire &lt;dustin@sensoria.com&gt;
Cc: Jeff Garzik &lt;jeff@garzik.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 drivers/net/Kconfig   |   16 
 drivers/net/Makefile  |    1 
 drivers/net/smc911x.c | 2307 ++++++++++++++++++++++++++++++++++++++++
 drivers/net/smc911x.h |  835 ++++++++++++++

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
To: <dustin@...>
Cc: <kernel-mentors@...>
Date: Tuesday, April 18, 2006 - 11:17 am

Hi,

Is the final code you submitted to netdev same as here?
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3315/1

I couldn't spot a submission in the netdev mailing list, could you
provide a pointer?

Thanks,
Bahadir

_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors