Re: how does kernel detects presence of a particular device

2010-11-03 Thread Tapas Mishra
On Wed, Nov 3, 2010 at 10:28 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: IIRC, it is the bus (or should we say, the motherboard...or chipset) that send somekind of signal (of announcement). Ok this is what I am looking for. What signal is send by whom and where Driver picks it up How?

Re: is this link valid

2010-11-03 Thread Tapas Mishra
On Wed, Nov 3, 2010 at 8:19 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Tue, Nov 2, 2010 at 18:09, Tapas Mishra mightydre...@gmail.com wrote: Hi, wanted to know if the information given on this link is still valid. http://linuxgazette.net/93/bhaskaran.html Have you give it try

Re: how does kernel detects presence of a particular device

2010-11-03 Thread Tapas Mishra
2010/11/3 अनुज anu...@gmail.com: Simply, whenever either a device or driver is registered with the bus, then probe function of matching driver is called by the bus subsystem. Refer : http://lxr.linux.no/#linux+v2.6.36/Documentation/PCI/pci.txt       probe               This probing function

Re: how does kernel detects presence of a particular device

2010-11-03 Thread Tapas Mishra
On Wed, Nov 3, 2010 at 11:22 AM, Gavin Guo tuffki...@gmail.com wrote: That How does probe work depends on particular driver. To be brief, driver will does some initial work for devices, like setting up register or registering device node on file system. For instance, touch panel driver need

Re: how does kernel detects presence of a particular device

2010-11-03 Thread Wouter Simons
On 11/03/2010 03:46 AM, Tapas Mishra wrote: As far as I understand once the probe function(Not too sure) detects or kernel detects then the driver would be looked up and control would be handed over to driver. If this is correct then how does probe works? Or how a particular device's presence

Re: how does kernel detects presence of a particular device

2010-11-03 Thread Tapas Mishra
On Wed, Nov 3, 2010 at 3:24 PM, Wouter Simons l...@woutersimons.org wrote: On 11/03/2010 03:46 AM, Tapas Mishra wrote: As far as I understand once the probe function(Not too sure) detects or kernel detects then the driver would be looked up and control would be handed over to driver. If this

Re: looking for corrections/enhancements/omissions for LKD3

2010-11-03 Thread Robert P. J. Day
On Wed, 3 Nov 2010, Himanshu Aggarwal wrote: I could not find a description about the state TASK_KILLABLE as well. May be this can be added in chapter related to process management. ok. and for further credit, when people find stuff like this and they have the time, dig into it further and

ethernet registers

2010-11-03 Thread Tapas Mishra
http://lxr.free-electrons.com/source/drivers/net/8139too.c#L289 I want to know what should I search to be able to understand the value of the registers given on above link. -- -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the

Re: ethernet registers

2010-11-03 Thread Wouter Simons
On 11/03/2010 12:58 PM, Tapas Mishra wrote: http://lxr.free-electrons.com/source/drivers/net/8139too.c#L289 I want to know what should I search to be able to understand the value of the registers given on above link. That sort of stuff is defined in datasheets, try here:

Beginner books/articles/papers for Filesystems

2010-11-03 Thread Sankar P
Hi, Are there any articles or books or whitepapers that are useful for understanding the basics of filesystems (like what are extents, backing-device-infos, caching etc.) ? I dont want a generic OS book, but something that explains about linux filesystems. Any recommendations ? -- Sankar P

Re: how to define id table

2010-11-03 Thread Rajat Sharma
Please refer to the Linux Device Drivers book, chapter 12: PCI Driver, section: Configuration Registers and Initialization Rajat On Tue, Nov 2, 2010 at 1:23 PM, Bond jamesbond.2...@gmail.com wrote: Hi, can any one tell me how is following type of structure defined? static

Re: how to define id table

2010-11-03 Thread Rajat Sharma
also this type of definition of a structure where {},{} is used I am not clear with this approach. actually its not very complex thing, just that the macro has hidden the complete declaration its like: static struct pci_device_id rtl8139_pci_tbl[] So, its actually array of structures, where

Re: ethernet registers

2010-11-03 Thread Tapas Mishra
On Wed, Nov 3, 2010 at 6:43 PM, Wouter Simons l...@woutersimons.org wrote: On 11/03/2010 12:58 PM, Tapas Mishra wrote: http://lxr.free-electrons.com/source/drivers/net/8139too.c#L289 I want to know what should I search to be able to understand the value of the registers given on above link.

Re: Beginner books/articles/papers for Filesystems

2010-11-03 Thread Anand Arumugam
Try Maurice J Bach's book. On Wed, Nov 3, 2010 at 9:17 AM, Sankar P sankar.curios...@gmail.com wrote: Hi, Are there any articles or books or whitepapers that are useful for understanding the basics of filesystems (like what are extents, backing-device-infos, caching etc.) ? I dont want a

Re: Beginner books/articles/papers for Filesystems

2010-11-03 Thread Nobin Mathew
See this http://www.amazon.com/UNIX-Filesystems-Evolution-Design-Implementation/dp/0471164836 On Wed, Nov 3, 2010 at 8:50 PM, Anand Arumugam anand.aru...@gmail.com wrote: Try Maurice J Bach's book. On Wed, Nov 3, 2010 at 9:17 AM, Sankar P sankar.curios...@gmail.com wrote: Hi, Are there any

Re: is this link valid

2010-11-03 Thread Denis Kirjanov
There are many good examples in drivers/net. drivers/net/pci-skeleton.c for example. I think that it is a not big problem to compare the text from the link with the current state of the device drivers. On Wed, Nov 3, 2010 at 9:42 AM, Tapas Mishra mightydre...@gmail.com wrote: On Wed, Nov 3, 2010

what is compound_page() all about?

2010-11-03 Thread Robert P. J. Day
somewhat embarrassed to admit i'd never noticed this before, but it has to do with pages and page flags. LKD3, on p. 232, discusses the _count member field of struct page, and states that that field, when it reaches *negative one*, represents a page that is no longer in use and is now

Re: Beginner books/articles/papers for Filesystems

2010-11-03 Thread Manish Katiyar
On Wed, Nov 3, 2010 at 9:14 AM, Nobin Mathew nobin.mat...@gmail.com wrote: See this http://www.amazon.com/UNIX-Filesystems-Evolution-Design-Implementation/dp/0471164836 On Wed, Nov 3, 2010 at 8:50 PM, Anand Arumugam anand.aru...@gmail.com wrote: Try Maurice J Bach's book. On Wed, Nov 3,

Re: what is compound_page() all about?

2010-11-03 Thread Josh Cartwright
On Wed, Nov 03, 2010 at 01:24:22PM -0400, Robert P. J. Day wrote: somewhat embarrassed to admit i'd never noticed this before, but it has to do with pages and page flags. LKD3, on p. 232, discusses the _count member field of struct page, and states that that field, when it reaches

Re: what is compound_page() all about?

2010-11-03 Thread Venkatram Tummala
On Wed, Nov 3, 2010 at 10:24 AM, Robert P. J. Day rpj...@crashcourse.ca wrote:  somewhat embarrassed to admit i'd never noticed this before, but it has to do with pages and page flags.  LKD3, on p. 232, discusses the _count member field of struct page, and states that that field, when it

BIOS Vs. Linux

2010-11-03 Thread अनुज
Hi list, I am just exploring how much the linux is dependent on BIOS. I wanted to know : 1. Which information linux uses from BIOS ( some sort of tables like MP tables, ACPI tables) and for what purpose? 2. Whether linux uses BIOS routines to program and initialize the different chips (e.g.