------=_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
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
------=_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--
------=_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--
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
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
------=_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...
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--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 9...
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
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...
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
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
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
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--
------=_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--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 70.85pt;}
div.S...------=_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;...------=_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 linux-2.6.23-rc9/Documentation/dontdiff linux-2.6.23-rc9/drivers/char/watchdog/Makefile linu...
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
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, 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
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(DISABL...
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, 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
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
------=_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--
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-mentorssome 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
-----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
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
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
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
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
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-mentorsThank 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-mentorsThat'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
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 sugge...
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
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
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...
>>>>> "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
>>>>> "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
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
