------=_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 <div>Hello. I am a kernel newbie. </div> <div>I&nbsp;knew the kernel-mentor site today. </div> <div>Please, I hope that mentors help me to have a question in the future.<= /div> <div>&nbsp;</div> <div>I had a one question. </div> <div>&nbsp;</div> <div>I know new feature &quot;Completions&quot; in Linux kernel 2.6 , but I= don't know difference semaphore and completion. </div> <div>I wonder that When&nbsp;i use completion instead of semaphore ?</div> <div>&nbsp;</div> <div>&nbsp;</div> <div>&nbsp;</div> ------=_Part_23083_12721608.1148003236098--
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
Hi all, I have written my multi-touch panel device driver and register two input devices. they appear in /dev/input/event7 & /dev/input/event8. The problem is that why X window can read other mouse devices automatically and work under X environment but the device driver written by my own cannot. I guess that if the evbit and keybit which I set is not correctly. I set my evbit & keybit as following: input->evbit[0] = BIT_MASK(EV_KEY) || BIT_MASK(EV_ABS); input->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); I'd like solve the problem first then take into issue that how to make multi-touch work in MPX. Thanks in advanced. _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
--b1_7084fc289c24eb1c13cbe0db36d15631 Content-Type: text/plain; charset = "UTF-8" Content-Transfer-Encoding: quoted-printable Hi Kernel-mentors, I set up a Facebook profile where I can post my pictures, videos and events and I want to add you as a friend so you can see it. First, you need to join Facebook! Once you join, you can also create your own profile. Thanks, Fawad To sign up for Facebook, follow the link below: http://www.facebook.com/p.php?i=3D515367679&k=3D5WFT3WUSUVWM5GFFSC25YS&r This e-mail may contain promotional materials. If you do not wish to receive future commercial mailings from Facebook, please click on the link below. Facebook's offices are located at 156 University Ave., Palo Alto, CA 94301. http://www.facebook.com/o.php?k=3Df33c3e&u=3D1526214287&mid=3D34235eG5af82e8fG0G8 --b1_7084fc289c24eb1c13cbe0db36d15631 Content-Type: text/html; charset = "UTF-8" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8"> </head> <body style=3D"margin: 0px; padding:0px;" dir=3D"ltr"> <!-- container table is 98% b/c yahoo mail needs 1% to display right --> <table width=3D"98%" border=3D"0" cellspacing=3D"0" cellpadding=3D"40"><tr> <td bgcolor=3D"#F7F7F7" width=3D"100%" style=3D"font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;"> <table cellpadding=3D"0" cellspacing=3D"0" border=3D"0" width=3D"620"> <tr> <td align=3D"left" bgcolor=3D"#3b5998" valign=3D"middle" style=3D"padding: 4px 8px; font-size: 16px; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; color: #fff;"><span style=3D"font-weight: bold; letter-spacing: -0.03em;">facebook</span></td></tr> </table> <table cellpadding=3D"0" cellspacing=3D"0" border=3D"0" width=3D"620" style=3D"border-bottom: 1px solid #3b5998; border-left: 1px solid #ccc; ...
------=_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 <gilles.gigan@gmail.com> Adds watchdog driver for EPIC Nano 7240 single board computers from IEI Signed-off-by: Gilles Gigan <gilles.gigan@gmail.com> --- 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 ...
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
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
<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">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* 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 ...------=_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,<br><br>am an student yearning to get started with kernel module development and have just joined this mailing list..<br>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&nbsp;i&nbsp;right?) and got&nbsp;started&nbsp;with&nbsp;writing&nbsp;a&nbsp;driver&nbsp;of&nbsp;a&nbsp;modem&nbsp;(Conexant HSF 56k HSFi Modem)&nbsp;but&nbsp;didnt&nbsp;get&nbsp;very&nbsp;far..&nbsp; <br> <br>so am looking for&nbsp;guidance&nbsp;to&nbsp;set&nbsp;course&nbsp;to&nbsp;my&nbsp;desire&nbsp;of&nbsp;actively&nbsp;participating&nbsp;in&nbsp;development&nbsp;of&nbsp;linux&nbsp;kernel&nbsp;and&nbsp;<br> contribute to the amazing world of linux . I have been using linux exclusively and trying to get started in linux programming.. <br><br>am hoping for a positive response and suggestions are ...
------=_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
<br><br><div><span class="gmail_quote">On 5/14/07, <b class="gmail_sendername">Razvan Deaconescu</b> &lt;<a href="mailto:razvan@anaconda.cs.pub.ro" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">razvan@anaconda.cs.pub.ro
</a>&gt; wrote:</span><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">
pradeep singh wrote:<br>&gt; Hi All,<br>&gt;<br>&gt; the __sock_create in net/socket.c has the following code snippet.<br>&gt;<br>&gt; if (family == PF_INET &amp;&amp; type == SOCK_PACKET) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;static int warned;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!warned) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; warned = 1;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printk(KERN_INFO &quot;%s uses obsolete (PF_INET,SOCK_PACKET)\n&quot;,<br>&gt; current-&gt;comm);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;family = PF_PACKET;
<br>&gt; }<br>&gt;<br>&gt; this may be in place to emit a harmless warning , but why not change it<br>&gt; to -<br>&gt; if (family == PF_INET &amp;&amp; type == SOCK_PACKET) {<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printk(KERN_INFO &quot;%s uses obsolete ...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<->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
Hi! I'm one of the developers on the CDEmu project. We want to get a driver merged into vanilla linux kernel. CDEmu is a software suite that allows people to take a CD/DVD-image and mount it on the system in the form of a virtual disc. Major parts of this software is based on user-space components, but we have a kernel module that's responsible for acting like a SCSI HBA (Host Bus adapter). Mainly all this HBA does is to send requests to a userspace daemon for processing and then fetch the result and send it back to the SCSI subsystem. The project's homepage is here: http://cdemu.sourceforge.net I went over the code to make sure it follows the coding style that's used. Is there anything else I need to do? I'm an able programmer but kernel code is something that I seldom touch. Any help is appreciated. Sincerely, Henrik
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
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>How to attach a patch to=20 kernel</FONT></DIV></BODY></HTML> ------=_NextPart_000_0013_01C755D1.2F5B0AD0--
From: Jon Schindler <jkschind@gmail.com> 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 <jkschind@gmail.com> --- 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(&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 ...
------=_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
<div>
<div>Hi&nbsp; folks,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; I am interested in&nbsp;programming of driver or embeded system. I have&nbsp;made a&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.
</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; So , I want to further my&nbsp;understanding to driver and embeded system ,but I do not know&nbsp;where&nbsp;I can&nbsp;join a active driver or embeded projects. Please do not hesitate to tell me about it if you know.</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; thanks very much.</div></div>
------=_Part_82500_28563908.1176885634399--
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
--mimepart_47e8eb029460a_7d9b1734ea061cfc2559ec Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline Hi kernel-mentors@selenic.com,<br/><br/> = 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,<br/><br/> <a href=3D"mailto:jim.cromie@gmail.com" style=3D"color:#000;text-decorati= on:none;">jim.cromie@gmail.com</a> has invited you to Spokeo,<br/> which finds your friends' updates across the Web. <br/><br/> On average, Spokeo finds 87 friends across 30 different social<br/> networks. See what Spokeo can find for you now! <br/><br/> <a href=3D"http://www.spokeo.com/public/join?c=3De32c7c5f5294867946c118cc= <br/><br/><br/><hr/> <span style=3D"color:#888;font-size:0.8em;"> This invitation was sent with jim.cromie's approval.<br/> If you wish to opt out of all future emails, <a href=3D"http://www.spok= eo.com/optout?c=3Dk495354544951515349" style=3D"color:#888;text-decoratio= n:underline;">click here</a>. <br/><br/> Copyright &copy; 2008 Spokeo, Inc. All rights reserved.<br/> 1685 Plymouth Street #200, Mountain View, CA 94043 </span>= --mimepart_47e8eb029460a_7d9b1734ea061cfc2559ec--
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
Hi All,
I am having a tough time debugging concurrency issues it seems.
I find myself flabbergasted at debugging panic because of race issues.
I would like to ask people here, if they have any advice on how to
properly approach these specific set of panics?
How do they do it?
Are there any rules of thumbs which can help me?
Thanks in Advance
--Pradeep
--
Pradeep
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
------=_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,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I just joined the group. I am reading the networking source code along with the help of the book &quot;The Linux TCP/IP Stack : Networking for embedded systems&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.
<br><br>Thanks a lot<br>Regards<br>Dheeraj<br>
------=_Part_12411_17838292.1184188942701--
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
--001485f9a62894889d048067671b Content-Type: text/plain; charset=ISO-8859-1 Hi, I am very new to Linux and I am eager to contribute to Linux Kernel Development activities. Please suggest me the steps to start with. Regards Vengatesh S --001485f9a62894889d048067671b Content-Type: text/html; charset=ISO-8859-1 Hi,<br><br>I am very new to Linux and I am eager to contribute to Linux Kernel Development activities. <br><br>Please suggest me the steps to start with.<br><br>Regards<br>Vengatesh S<br> --001485f9a62894889d048067671b--
Hi, I have read in Robert Love's (Linux Kernel Development) ED2 book about the fork system call. The kernel splits the remaining timeslice of the parent process to half. Now, both, child and parent process have half of the remaining timeslice each. However I was unable to find code for this split anywhere in the fork call graph. (It was supposed to be in the function: copy_process() ). Also, the book mentions that the child_runs_first semantics does not work quite well with kernel 2.6.x. Any explanations/help on these points would be appreciated. Regards, Anand _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
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
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
------=_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 <div dir="ltr">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.<br></div> ------=_Part_43015_32133774.1219612730024--
As long as you are not over 80 characters, both look just fine. thanks, greg k-h _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
followon question:
my editor auto-indents to the '(', which is nice, but when the function-name
or the assignment its used in, takes up most of the line, the '('
becomes a nuisance.
A simple way to accommodate that is:
result = some_long_function_name_foo_bar_1
(foo2, foo3, foo4, foo5, foo6, foo7);
is this ok, or distasteful ?
_______________________________________________
Kernel-mentors mailing list
Kernel-mentors@selenic.com
http://selenic.com/mailman/listinfo/kernel-mentors
Distateful, IMHO. Cheers, Muli -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/ _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
distasteful. Fix your editor or switch to a better one :) thanks, greg k-h _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
Looks like my mailer decided to mangle my spacing ;) -- please ignore that and look at the way the variables are indented ... _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
Please drop this compatibility code. We'd prefer not to carry this You've got an ugly mix of tabs and spaces here. My recommendation Didn't we have a bunch of nice defines for these magic numbers? This all seems a little ugly to me. If you have to type pdata->regs.rx_stat_fifo anyway, you might as well have an inline function that does foo(pdata, RX_STAT_FIFO) rather than filling out Please don't use a space between cast and variable. And again, casting Really need const? -- Mathematics is the supreme nostalgia of our time. _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
Hi, Thanks to all for taking time to review. I will change it accordingly. Bahadir _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
>>>>> "Bahadir" == Bahadir Balban <bahadir.balban@gmail.com> writes: Hi, Bahadir> I have attached an ethernet driver that I would like to submit for Bahadir> inclusion. It's the first that I will submit as such, so could you Bahadir> please comment on the code, in terms of coding style, or any Bahadir> 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
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
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
The patch was sent to lkml and Andrew Morton. It was bounced back due to some formatting issues. I'm cleaning these up and then resubmitting. _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
>>>>> "Dustin" == Dustin McIntire <dustin@sensoria.com> writes: Hi, Dustin> I've submitted the driver up the food chain and it is Dustin> currently awaiting comments on lkml and from the net driver Dustin> 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
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" <dustin@sensoria.com> New net driver. Only tested on ARM. Signed-off-by: Dustin McIntire <dustin@sensoria.com> Cc: Jeff Garzik <jeff@garzik.org> Signed-off-by: Andrew Morton <akpm@osdl.org> --- 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
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 <take mutex> <do some actions> <release mutex> 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
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
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 <this tiny detail>" 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
------=_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 <div>Thank you. Your comments help me so much. </div> <div>It seems to solve my question between completion and semaphore. </div> <div>&nbsp;</div> <div>Have a nice day.</div> <div><br><br>&nbsp;</div> <div><span class=3D"gmail_quote">On 5/19/06, <b class=3D"gmail_sendername">= Arjan van de Ven</b> &lt;<a href=3D"mailto:arjan@infradead.org">arjan@infra= dead.org</a>&gt; wrote:</span> <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0= px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Fri, 2006-05-19 at 12:41 +090= 0, minchan Kim wrote:<br>&gt; Thanks to your commenting.<br>&gt;<br>&gt; I = understand your point.&nbsp;&nbsp;But I see the book &quot;Understanding of= the <br>&gt; Linux Kernel&quot;, it says &quot;Semaphore happen race condition = problem in the<br>&gt; SMP envirioment since call up and down concurrency. = But Completion<br>&gt; isn't&quot;<br>&gt;<br>&gt; I don't understand it. D= o you understand it? <br><br>I think they mean that semaphores will cause exclusion (but really,= use<br>mutexes, much easier and they are replacing semaphores), while<br>c= ompletions do not cause exclusion...<br><br>eg you can use a mutex to preve= nt concurrent access (as the code snippet ENTIRELY different things. Not even comparable. So saying <br>&quot;they're different in &lt;this tiny detail&gt;&quot; sort of impli= es they're<br>similar constructs in many other ways. They are not. Don't ev= en think<br>they are.<br><br>(having said that, some people used to abuse s= emaphores to do ...
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
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
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
------=_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 <a href="http://tldp.org">tldp.org</a>. Check out the ebook on kernel modules programming guide. <br><br><div><span class="gmail_quote">On 8/24/06, <b class="gmail_sendername">Jim Cromie</b> &lt;<a href="mailto:jim.cromie@gmail.com"> jim.cromie@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Shobhit Jindal wrote:<br>&gt; dear sirs,<br>&gt;<br> &gt; am an student yearning to get started with kernel module development<br>&gt; and have just joined this mailing list..<br>&gt; In the past i have tried my hands on programming but got too confused<br>&gt; where to start with finally figured out to start with device <br>&gt; development(wos i right?) and<br>&gt; got started with writing a driver of a modem (Conexant HSF 56k HSFi<br>&gt; Modem) but didnt get very far..<br>&gt;<br>&gt; so am looking<br>&gt; for guidance to set course to my desire of actively participating in development of linux kernel and <br>&gt; contribute to the amazing world of linux . I have been using linux<br>&gt; exclusively and trying to get started in linux programming..<br>&gt;<br>&gt; am hoping for a positive response and suggestions are always welcome <br>&gt;<br><br>Take a look at the goals of this ML:<br><a ...
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
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
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
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
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
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
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
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
-----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
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
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
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
------=_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 <br><br><div><span class="gmail_quote">On 5/14/07, <b class="gmail_sendername">Arjan van de Ven</b> &lt;<a href="mailto:arjan@infradead.org">arjan@infradead.org</a>&gt; wrote:</span><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"> On Mon, 2007-05-14 at 13:42 +0530, pradeep singh wrote:<br><br>&gt;<br>&gt; But why would we want<br>&gt; to issues warning only once and not each time the socket is created for SOCK_PAKCET type?<br><br>because then a normal user can overflood the system log ;) </blockquote><div><br>Oh,&nbsp;that&nbsp;explains&nbsp;a&nbsp;lot.<br>Thank&nbsp;you&nbsp;Arjan.<br>~psr&nbsp;</div><br></div><br><br clear="all"><br>-- <br>play the game ------=_Part_157313_6500281.1179205776102--
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
On Sat, Oct 06, 2007 at 01:10:23PM +1000, Gilles GIGAN wrote:
> 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)
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).
> - 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", ... ?)
'watchdog' sounds sane. Remember to Cc the watchdog maintainer too
Wim Van Sebroeck <wim@iguana.be> (He may have more specific comments).
Some minor nits..
> +config SBC7240_WDT
> + tristate "SBC Nano 7240 Watchdog Timer"
> + 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.
> +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.
> + // is there a magic char ?
Use /* */ rather than c++ style comments.
> + printk(KERN_INFO PREFIX "Removing watchog\n");
Typo.
> + //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...
> +// release_region(DISABLE_SBC7240_PORT,1);
...
> +/* if (!request_region(DISABLE_SBC7240_PORT, 1, "SBC7240 WDT"))
> + {
> + ...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
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
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
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
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
On Tue, 2009-01-20 at 08:52 +1100, aboobacker vadakkumuri valappil We've got something very similar to this in the kernel already and it's called iSCSI. iSCSI is a moderately straightforward encapsulation of the SCSI protocol in TCP. It's not great, but at least it's standardized. If you have code that generates SCSI packets in userspace, it's relatively straightforward to convert those to iSCSI packets and serve them over TCP and then attach to your virtual SCSI device from the kernel. And yes, this even works with things other than disks. -- http://selenic.com : development and support for Mercurial and Linux _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
Good advice. Sounds like a simple way for us to communicate with the kernel. Our software does indeed process and generate SCSI (MMC-3) packets from userspace. I'm assuming iSCSI works sort of like a virtual bus, that'd be just the thing we need. You wouldn't happen to know how this compares to STGT and/or SCST would you? Emphasis on ease of implementation. Sincerely, Henrik Stokseth. _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
If I recall correctly, STGT and SCST are very simple and not network-based. Nor are they IETF standards. -- http://selenic.com : development and support for Mercurial and Linux _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
------=_Part_15541_13126414.1232406259318 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Good... Well, i am not sure about your commend about iSCSI. There has not been any transport protocols, which is as feature rich and robus as iSCSI :) It is the industry standard for SCSI transport. The other expensive option is fibrechannel. iSCSI has been bread and butter for a lot of storage companies these days. BTW, i see you using the copy_to_user, have you thought about using netlink sockets or memory mapping techniques to transfer data between user space and kernel? Aboo ------=_Part_15541_13126414.1232406259318 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div>Good... Well, i am not sure about your commend about iSCSI. There has not been any transport protocols, which is as feature rich and robus as iSCSI :) It is the industry standard for SCSI transport. The other expensive option&nbsp; is fibrechannel. iSCSI has been bread and butter for a lot of storage companies these days.</div> <div>&nbsp;</div> <div>BTW, i see you using the copy_to_user, have you thought about using netlink sockets or memory mapping techniques to transfer data between user space and kernel?</div> <div>&nbsp;</div> <div>Aboo</div> <div><br><br>&nbsp;</div> <div class="gmail_quote">2009/1/20 Matt Mackall <span dir="ltr">&lt;<a href="mailto:mpm@selenic.com">mpm@selenic.com</a>&gt;</span><br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Tue, 2009-01-20 at 08:52 +1100, aboobacker vadakkumuri valappil<br>wrote:<br> <div class="Ih2E3d">&gt; Anyway, on another note, i also had similar project. Have a look at<br>&gt; this <a href="http://vscsihba.aboo.org/" target="_blank">http://vscsihba.aboo.org/</a> also. This was my project few years<br> &gt; ago. &nbsp;My poject was not just to prsent the file as a disk, but to ...
On Tue, 2009-01-20 at 10:04 +1100, aboobacker vadakkumuri valappil I know, I used to work with the group that created ScsiTCP, what eventually became iSCSI. Writing a basic iSCSI target is not rocket science, especially if you're starting with something that already talks SCSI. There's an open standard, freely available sample code, and lots of features you can ignore. -- http://selenic.com : development and support for Mercurial and Linux _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
I did send a mail to the Linux SCSI mailinglist and was advised to have a look at STGT and/or SCST. I'm unfamiliar with both so I'm currently reading up on them. Basically if we could just plug our virtual drive Very interesting. It bears similarities. Do you consider it stable by Yes. But it has it's limitations. For one we support a lot of different formats, the other one would be lack of emulation capabilites. Thanks. Sincerely, Henrik Stokseth _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
How is this different from a loop-back mounted device? Shouldn't that Have you read Documentation/SubmittingDrivers for how to do this? Have you tried submitting it to the scsi people for their approval already? thanks, greg k-h _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
Hi... On Tue, May 26, 2009 at 3:57 PM, pradeep singh OK, first thing that I could recall quickly is: do you really understand the flow of the code? do you know the possibilities of what might happen if several code path happen at the same time? In debugging race condition, I think it's important either by trying to reduce the threads number (if it's solely a multi threading program), or...in a complex situation like in Linux kernel.... try to intersect with as least triggers as possible i.e is it possible to trigger the panic with just interrupt handler code triggered by 2 CPUs instead of 4 or 8 CPUs regards, Mulyadi. _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
Timeslices are no more used in the new CFS scheduler. I don't really remember how fork was handled if the forked processes is of real time priority, which still uses timeslices. Please correct me if I am wrong in any point. _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
On Wed, Feb 24, 2010 at 11:05 PM, Vengatesh Sundararajan To do that it would help to know more about how well you know C. Luis _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
--001636283a2e8b83c8048068f09f Content-Type: text/plain; charset=ISO-8859-1 --001636283a2e8b83c8048068f09f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Thu, Feb 25, 2010 at 1:59 PM, Luis R.= Rodriguez <span dir=3D"ltr">&lt;<a href=3D"mailto:mcgrof@gmail.com">mcgrof= @gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style= =3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; p= adding-left: 1ex;"> <div class=3D"im">On Wed, Feb 24, 2010 at 11:05 PM, Vengatesh Sundararajan<= br> &lt;<a href=3D"mailto:vengateshs@gmail.com">vengateshs@gmail.com</a>&gt; wr= ote:<br> &gt; Hi,<br> &gt;<br> &gt; I am very new to Linux<br> <br> </div>How new to Linux?<br> <div class=3D"im">I&#39;ve not worked on the OSes which use Linux Kernel.<b= r></div></blockquote><div>=A0</div><blockquote class=3D"gmail_quote" style= =3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; p= adding-left: 1ex;"> <div class=3D"im"> &gt; and I am eager to contribute to Linux Kernel<br> &gt; Development activities.<br> <br> </div>Great :)<br> <div class=3D"im"><br> <br> &gt; Please suggest me the steps to start with.<br> <br> </div>To do that it would help to know more about how well you know C.<br><= /blockquote><div>=A0=A0=A0 I&#39;ve decent knowledge in C but less on syste= m-programming area.<br></div><blockquote class=3D"gmail_quote" style=3D"bor= der-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-= left: 1ex;"> <font color=3D"#888888"><br> =A0Luis<br> </font></blockquote></div><br> --001636283a2e8b83c8048068f09f--
On Thu, Feb 25, 2010 at 12:55 AM, Vengatesh Sundararajan That's OK. Please consider using bottom posting: http://en.wikipedia.org/wiki/Posting_style#Bottom-posting Luis _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
--0016364ee3ba7874110480691454 Content-Type: text/plain; charset=ISO-8859-1 --0016364ee3ba7874110480691454 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Thu, Feb 25, 2010 at 2:27 PM, Luis R.= Rodriguez <span dir=3D"ltr">&lt;<a href=3D"mailto:mcgrof@gmail.com">mcgrof= @gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style= =3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; p= adding-left: 1ex;"> <div class=3D"im">On Thu, Feb 25, 2010 at 12:55 AM, Vengatesh Sundararajan<= br> &lt;<a href=3D"mailto:vengateshs@gmail.com">vengateshs@gmail.com</a>&gt; wr= ote:<br> <br> &gt;&gt; I&#39;ve not worked on the OSes which use Linux Kernel.<br> <br> </div>&gt;Can you elaborate?<br></blockquote><div>=A0 <br>=A0=A0 I have wor= ked more on Windows OS and not much on Linux OSes. =A0<br></div><blockquote= class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); = margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class=3D"im"><br> &gt;&gt; =A0=A0=A0 I&#39;ve decent knowledge in C but less on system-progra= mming area.<br> <br> </div>&gt;That&#39;s OK. Please consider using bottom posting:<br> <br>&gt;<a href=3D"http://en.wikipedia.org/wiki/Posting_style#Bottom-postin= g" target=3D"_blank">http://en.wikipedia.org/wiki/Posting_style#Bottom-post= ing</a><br> <font color=3D"#888888"><br> =A0Luis<br> </font></blockquote></div><br> --0016364ee3ba7874110480691454--
On Thu, Feb 25, 2010 at 1:05 AM, Vengatesh Sundararajan What stuff did you do on Windows ? Luis _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
--001485f90d3055067c048069645a Content-Type: text/plain; charset=ISO-8859-1 I have worked on Windows - Application Programming on C/C++ using MS-Visual Studio as IDE and also worked on Database programming(SQL-Server). Vengatesh --001485f90d3055067c048069645a Content-Type: text/html; charset=ISO-8859-1 <div class="gmail_quote">On Thu, Feb 25, 2010 at 2:44 PM, Luis R. Rodriguez <span dir="ltr">&lt;<a href="mailto:mcgrof@gmail.com">mcgrof@gmail.com</a>&gt;</span> wrote:<br><font color="#888888"><br></font>&gt; What stuff did you do on Windows ?<br> <br>I have worked on Windows - Application Programming on C/C++ using MS-Visual Studio as IDE and also worked on Database programming(SQL-Server).<br><br>Vengatesh<br></div><br> --001485f90d3055067c048069645a--
--00032555415afd3b2904806a1f2f Content-Type: text/plain; charset=ISO-8859-1 Good time of day! I'm also interested in the kernel networking stuff. Luis, If there is a startup project where to able to dive in, it would be great to know about that. On Thu, Feb 25, 2010 at 12:27 PM, Vengatesh Sundararajan < -- Regards, Denis --00032555415afd3b2904806a1f2f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Good time of day!<br>I&#39;m also interested in the kernel networking stuff= .<br><br>Luis,<br>If there is a startup project where to able to dive in, i= t would be great to know about that. <br><br><div class=3D"gmail_quote">On = Thu, Feb 25, 2010 at 12:27 PM, Vengatesh Sundararajan <span dir=3D"ltr">&lt= <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, = 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"gma= il_quote"><div class=3D"im">On Thu, Feb 25, 2010 at 2:44 PM, Luis R. Rodrig= uez <span dir=3D"ltr">&lt;<a href=3D"mailto:mcgrof@gmail.com" target=3D"_bl= ank">mcgrof@gmail.com</a>&gt;</span> wrote:<br> <font color=3D"#888888"><br></font>&gt; What stuff did you do on Windows ?<= br> <br></div>I have worked on Windows - Application Programming on C/C++ using= MS-Visual Studio as IDE and also worked on Database programming(SQL-Server= ).<br><br>Vengatesh<br></div><br> <br>_______________________________________________<br> Kernel-mentors mailing list<br> <a href=3D"http://selenic.com/mailman/listinfo/kernel-mentors" target=3D"_b= lank">http://selenic.com/mailman/listinfo/kernel-mentors</a><br> <br></blockquote></div><br><br clear=3D"all"><br>-- <br>Regards,<br>Denis<b= r> --00032555415afd3b2904806a1f2f--
This is a multi-part message in MIME format. ------_=_NextPart_001_01CAB607.B35390E8 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, =20 I am not sure when I joined this mailing list. Probably after I became a fan of mercurial and started poking around selenic's website. I am sure I haven't received any mails from this mailing list for a looong time. =20 How did you guys get to know about this mailing list? =20 Are there any moderators? Can you please post some general guidelines on the topics to be discussed in this mailing list? =20 As for Vengatesh's question, go to kernel.org website and read through it. The Linux kernel is a vast piece of code and would be really difficult to handle until you get familiar with first using Linux on your PC. Dreaming of contributing to the Linux kernel may be a far fetched, but you might get there if you have the perseverance. =20 You might also try reading some books on kernel driver development. =20 regards, arun ________________________________ From: kernel-mentors-bounces@selenic.com [mailto:kernel-mentors-bounces@selenic.com] On Behalf Of Denis Kirjanov Sent: Thursday, February 25, 2010 3:50 PM To: Luis R. Rodriguez; kernel-mentors@selenic.com Subject: Re: suggestion needed =09 =09 Good time of day! I'm also interested in the kernel networking stuff. =09 Luis, If there is a startup project where to able to dive in, it would be great to know about that.=20 =09 =09 On Thu, Feb 25, 2010 at 12:27 PM, Vengatesh Sundararajan <vengateshs@gmail.com> wrote: =09 On Thu, Feb 25, 2010 at 2:44 PM, Luis R. Rodriguez <mcgrof@gmail.com> wrote: =09 > What stuff did you do on Windows ? =09 =09 I have worked on Windows - Application Programming on C/C++ using MS-Visual Studio as IDE and also worked on Database programming(SQL-Server). =09 Vengatesh =09 _______________________________________________ Kernel-mentors mailing ...
--0015173fee5a59ca9204806ac663 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Feb 25, 2010 at 1:45 PM, Arun Dhananjayan (dhanana) < Yeah, correct. But additionally it would be nice to hear something for the begginer kernel developers with small amount of patches :) Thanks! -- Regards, Denis --0015173fee5a59ca9204806ac663 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Thu, Feb 25, 2010 at 1:45 PM, Arun Dh= ananjayan (dhanana) <span dir=3D"ltr">&lt;<a href=3D"mailto:dhanana@cisco.c= om">dhanana@cisco.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_q= uote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0= pt 0.8ex; padding-left: 1ex;"> <div> <div><span><font color=3D"#0000ff" face=3D"Arial" size=3D"2">Hi=20 All,</font></span></div> <div><span><font color=3D"#0000ff" face=3D"Arial" size=3D"2"></font></span>= =A0</div> <div><span><font color=3D"#0000ff" face=3D"Arial" size=3D"2">I am=20 not sure when I joined this mailing list. Probably after I became a fan of= =20 mercurial and started poking around selenic&#39;s website. I am sure I have= n&#39;t=20 received any mails from this mailing list for a looong time.</font></span><= /div></div></blockquote><div>The same story :)<br></div><blockquote class= <div><div>=A0</div> <div><span><font color=3D"#0000ff" face=3D"Arial" size=3D"2">How=20 did you guys get to know about this mailing list?</font></span></div> <div><span><font color=3D"#0000ff" face=3D"Arial" size=3D"2"></font></span>= =A0</div> <div><span><font color=3D"#0000ff" face=3D"Arial" size=3D"2">Are=20 there any moderators? Can you please post some general guidelines on the to= pics=20 <div><span><font color=3D"#0000ff" face=3D"Arial" size=3D"2">As for=20 Vengatesh&#39;s question, go to <a href=3D"http://kernel.org" target=3D"_bl= ank">kernel.org</a> website and read through it. The Linux=20 kernel is a vast piece of code and would ...
--0016e64b1600e5501404806e80d5
Content-Type: text/plain; charset=ISO-8859-1
Hi All,
I Have Also Same Question, I am Fresser (6 Month Experience)
Currently: I am Working on WinCE 6.0 USB Driver in XXX-XXX Company, & Have
a gud Knowledge of C/C++,
I have Good Understanding with (Linux Programinng By Niel
Mathew, & Richard stones) &
I have Also try to read the "Linux Device Driver By Jonathan
corbet).
Can any one please tell me how do I start, so that I may also Contribute
some in Linux Kernel. like USB...
Regards:
Pulkit Goel
Mail: email@pulkitgoel.com
vipulkit.goel@gmail.com
--0016e64b1600e5501404806e80d5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<br>Hi All,<br><br>I Have Also Same Question, I am Fresser (6 Month Experie=
nce)<br><br>Currently: I am Working on WinCE 6.0 USB Driver in XXX-XXX Comp=
any, &amp;=A0 Have a gud Knowledge of C/C++,<br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0 I have Good Understanding with (Linux Programinng By Niel M=
athew, &amp; Richard stones) &amp;<br>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 I have Also try to read the &quo=
t;Linux Device Driver By Jonathan corbet).<br><br>Can any one please tell m=
e how do I start, so that I may also Contribute some in Linux Kernel. like =
USB...<br><br><br><br><br>
Regards:<br>Pulkit Goel<br>Mail: <a href=3D"mailto:email@pulkitgoel.com">em=
ail@pulkitgoel.com</a><br>=A0=A0=A0=A0=A0=A0=A0 <a href=3D"mailto:vipulkit.=
goel@gmail.com">vipulkit.goel@gmail.com</a><br><br><div class=3D"gmail_quot=
e">On Thu, Feb 25, 2010 at 4:36 PM, Denis Kirjanov <span dir=3D"ltr">&lt;<a=
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div clas=
s=3D"gmail_quote"><div class=3D"im">On Thu, Feb 25, 2010 at 1:45 PM, Arun D=
hananjayan (dhanana) <span dir=3D"ltr">&lt;<a href=3D"mailto:dhanana@cisco.=
com" ...--000325557aaa5cc6bc0480707237 Content-Type: text/plain; charset=ISO-8859-1 Hi, I think that the LDP is a good starting point to contribute. You could read more about this project here: http://www.linuxdriverproject.org/foswiki/bin/view<http://vkontakte.ru/away.php?to=... . Also please check the MAINTAINERS file from the kernel source code fot the USB subsystem. -- Regards, Denis --000325557aaa5cc6bc0480707237 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,<br>I think that the LDP is a good starting point to contribute. You cou= ld read more about this project here: <a href=3D"http://vkontakte.ru/away.p= hp?to=3Dhttp%3A%2F%2Fwww.linuxdriverproject.org%2Ffoswiki%2Fbin%2Fview" tar= get=3D"_blank">http://www.linuxdriverproject.org/foswiki/bin/view</a>.<br> <br>Also please check the MAINTAINERS file from the kernel source code fot = the USB subsystem.<br><br><div class=3D"gmail_quote">On Thu, Feb 25, 2010 a= t 6:33 PM, Pulkit Goel <span dir=3D"ltr">&lt;<a href=3D"mailto:vipulkit.goe= l@gmail.com">vipulkit.goel@gmail.com</a>&gt;</span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, = 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi All,<br><b= r>I Have Also Same Question, I am Fresser (6 Month Experience)<br><br>Curre= ntly: I am Working on WinCE 6.0 USB Driver in XXX-XXX Company, &amp;=A0 Hav= e a gud Knowledge of C/C++,<br> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 I have Good Understanding with (= Linux Programinng By Niel Mathew, &amp; Richard stones) &amp;<br> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 I have Also try to read the &quo= t;Linux Device Driver By Jonathan corbet).<br><br>Can any one please tell m= e how do I start, so that I may also Contribute some in Linux Kernel. like = USB...<br><br><br><br><br> Regards:<br><font color=3D"#888888">Pulkit Goel<br>Mail: <a ...
On Thu, Feb 25, 2010 at 1:27 AM, Vengatesh Sundararajan OK -- I recommend to just go dive in head on first. A good option is to take a staging driver that you know does not have an equivalent upstream driver already and start spit shining it. You can check if the driver has an equivalent by asking on the subsystem's respective mailing list. You can learn very quickly what you need to do by just also signing up to the subsystem's mailing list and reading patches. You likely won't understand all of them but there's a few things you will get. The silliest thing to get used to is Coding style, but for that you can use the kernel's own ./scripts/checkpatch.pl against a patch generated. I also recommend to get sparse and always sparse check compile your code. Staging drivers will likely complain for a long time with sparse. git://git.kernel.org/pub/scm/devel/sparse/chrisl/sparse.git Simply ensuring a driver in staging adheres to Linux coding style in such a way that it no longer gets complaints from checkpatch.pl or sparse is itself a good initial exercise. It won't require much work except for getting used to the style and typical coding practices. After you've been done with that on one staging driver you should have already picked up a few other tricks. So that would be a good start. The staging area has a project page and mailing list: http://www.linuxdriverproject.org/foswiki/bin/view http://www.linuxdriverproject.org/foswiki/bin/view But an atomic bomb seems to have hit the webserver. Check again later. For now just clone linux-next and that will get you the latest staging tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git Staging stuff gets maintained on a set of quilt patches but if you are not using quilt you can just use the above to get the same. You can then post patches tot he driver-devel list I gave above to Greg for any of the staging drivers for the things I mentioned above. Any and all contributions are welcomed. ...
The mailing list URL is: http://driverdev.linuxdriverproject.org/mailman/listinfo/devel But also busted for now. Luis _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
Oh and you should probably avoid sparse at first. First address checkpatch.pl complaints for the entire driver, and then after that you can start using sparse. You can use sparse once compiled and installed on your system by compiling the module using make M=drivers/staging/foo/ C=1 The C=1 does the sparse check. The M=drivers/staging/foo/ lets you compile only the staging driver foo for example instead of the entire kernel. You may be wondering how to get a driver to pass checkpatch.pl. checkpatch.pl just reads a patch so you will have to either delete the driver and re-add it to check, or just start grooming a file line by line. Remember that upstream patches need to be atomic in the sense that you address only one thing at a time. So don't go crazy with a lot of things in one patch. Address checkpatch stuff for one file for example, that'll get you started well. One trick is to edit a file and use: git diff | checkpatch.pl - That will tell checkpatch to read stdin instead of a file. This works if you have your kernel's scripts/ directory under your PATH. If you are new to git, a quick cheat guide: http://wireless.kernel.org/en/developers/Documentation/git-guide http://wireless.kernel.org/en/developers/Documentation/SubmittingPatches These are both very 802.11 specific but should get you started. Luis _______________________________________________ Kernel-mentors mailing list Kernel-mentors@selenic.com http://selenic.com/mailman/listinfo/kernel-mentors
