Re: why set a timer to expire at the current value of jiffies?

2008-03-31 Thread Robert P. J. Day
On Mon, 31 Mar 2008, Mulyadi Santosa wrote: Hi On Sun, Mar 30, 2008 at 9:22 PM, Robert P. J. Day [EMAIL PROTECTED] wrote: i'm sure there's a simple answer to this, but what's the value in calling mod_timer() to reset a timer to expire at the current value of jiffies? $ grep

Re: why set a timer to expire at the current value of jiffies?

2008-03-31 Thread Mulyadi Santosa
Hi Robert On Mon, Mar 31, 2008 at 3:45 PM, Robert P. J. Day [EMAIL PROTECTED] wrote: sure, that's what i thought as well, but depending on the semantics of how timers work, can't you imagine an implementation that checks first and realizes right away that you're *already* at that time and

Re: some good online kernel docs?

2008-03-31 Thread Shreyansh Jain
Hi, Just a couple from me probably already too common: * memory management (wouldn't we all?) * debugging (the latest techniques) info about Kexec and Kdump: http://www.linux-mag.com/id/2998/ GDB manual: http://sources.redhat.com/gdb/current/onlinedocs/gdb_toc.html -- Shreyansh -- To

RE: starting function for kernel process

2008-03-31 Thread Rajat Jain
Hi, As for every program there will be start function( ie main). What is the starting function for kerenl process , ie similarly main(). Do you mean the entry point for the kernel image (The first instruction that gets executed)? That will be in architecture specific, will be written

Re: Question about linux paging mechanism

2008-03-31 Thread Wu Yu
Thanks a lot! I'll look into it. On Mon, Mar 31, 2008 at 12:19 AM, Peter Teoh [EMAIL PROTECTED] wrote: You must also check out the different between kernel address space, and process address space. And this: http://linux-mm.org/LinuxMMDocumentation Last, personally, I find this

do ext3 symlinks cost any data blocks?

2008-03-31 Thread Robert P. J. Day
i'm reading some documentation that claims that neither ext3 device files nor symlinks cost you any data blocks in the filesystem. sure, that's obvious with device files, but symlinks? i always thought that symlinks cost you a single data block -- just enough to store the actual character

Re: do ext3 symlinks cost any data blocks?

2008-03-31 Thread Erik Mouw
On Mon, Mar 31, 2008 at 09:08:12AM -0400, Robert P. J. Day wrote: i'm reading some documentation that claims that neither ext3 device files nor symlinks cost you any data blocks in the filesystem. sure, that's obvious with device files, but symlinks? i always thought that symlinks cost

Re: where went /dev/kmem?

2008-03-31 Thread Erik Mouw
On Mon, Mar 31, 2008 at 10:20:35AM -0400, Robert P. J. Day wrote: On Mon, 31 Mar 2008, Erik Mouw wrote: On Sat, Mar 29, 2008 at 03:20:31AM -0400, Robert P. J. Day wrote: following up on a short article i just read, where is /dev/kmem these days? was it actually deleted? back in

Re: where went /dev/kmem?

2008-03-31 Thread Erik Mouw
On Sat, Mar 29, 2008 at 03:20:31AM -0400, Robert P. J. Day wrote: following up on a short article i just read, where is /dev/kmem these days? was it actually deleted? back in 2005, jon corbet was certainly hinting at this: http://lwn.net/Articles/147901/ and i don't see it today on

Re: RFC: Writing Solaris Device Drivers in Java

2008-03-31 Thread David Miller
From: Peter Teoh [EMAIL PROTECTED] Date: Mon, 31 Mar 2008 10:14:55 +0800 Ie, imagine using a drivers written for the Solaris in Linux, won't it be cool? About as cool as a fart in a spacesuit. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to [EMAIL PROTECTED]

Re: RFC: Writing Solaris Device Drivers in Java

2008-03-31 Thread Jacek Luczak
Peter Zijlstra pisze: On Mon, 2008-03-31 at 10:14 +0800, Peter Teoh wrote: Interesting read: http://research.sun.com/techrep/2006/smli_tr-2006-156.pdf Personal comments: Since KVM and Xen/OpenVZ etc other virtual machines are beginning to pop up - I don't see why it inhibits (in spite of

Re: RFC: Writing Solaris Device Drivers in Java

2008-03-31 Thread Willy Tarreau
On Mon, Mar 31, 2008 at 10:14:55AM +0800, Peter Teoh wrote: Interesting read: http://research.sun.com/techrep/2006/smli_tr-2006-156.pdf Personal comments: Since KVM and Xen/OpenVZ etc other virtual machines are beginning to pop up - I don't see why it inhibits (in spite of the many

Re: RFC: Writing Solaris Device Drivers in Java

2008-03-31 Thread Wander Winkelhorst
On Mon, Mar 31, 2008 at 11:28 AM, Peter Zijlstra [EMAIL PROTECTED] wrote: On Mon, 2008-03-31 at 10:14 +0800, Peter Teoh wrote: Interesting read: http://research.sun.com/techrep/2006/smli_tr-2006-156.pdf Personal comments: Since KVM and Xen/OpenVZ etc other virtual machines

Re: question on printk() spin_lock()/spin_unlock(): its proper usage

2008-03-31 Thread Rik van Riel
On Mon, 31 Mar 2008 00:53:32 +0800 Peter Teoh [EMAIL PROTECTED] wrote: Thanks Rik, On Mon, Mar 31, 2008 at 12:16 AM, Rik van Riel [EMAIL PROTECTED] wrote: On Sun, 30 Mar 2008 23:24:50 +0800 Peter Teoh [EMAIL PROTECTED] wrote: Is there any guidelines on when and where can we insert

Re: RFC: Writing Solaris Device Drivers in Java

2008-03-31 Thread Peter Teoh
On Mon, Mar 31, 2008 at 7:58 PM, Jacek Luczak [EMAIL PROTECTED] wrote: Peter Zijlstra pisze: Java? Compete against C? Don't scare embedded devs. The future is always uncertain for us. Embedded development usually emphasizes on performance, unlike those of the desktop. So which language

Re: RFC: Writing Solaris Device Drivers in Java

2008-03-31 Thread Peter Zijlstra
On Mon, 2008-03-31 at 10:14 +0800, Peter Teoh wrote: Interesting read: http://research.sun.com/techrep/2006/smli_tr-2006-156.pdf Personal comments: Since KVM and Xen/OpenVZ etc other virtual machines are beginning to pop up - I don't see why it inhibits (in spite of the many initial

Re: question on printk() spin_lock()/spin_unlock(): its proper usage

2008-03-31 Thread Peter Teoh
On Mon, Mar 31, 2008 at 11:53 PM, Rik van Riel [EMAIL PROTECTED] wrote: On Mon, 31 Mar 2008 00:53:32 +0800 thank you Rik for the answer :-). I have learned something. -- Regards, Peter Teoh -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to [EMAIL PROTECTED]

Re: blktrace debugging: how to use it

2008-03-31 Thread Peter Teoh
On Mon, Mar 31, 2008 at 12:41 PM, Mulyadi Santosa [EMAIL PROTECTED] wrote: Hi.. All I remember, the user space code is available from Jens Axboe's CVS or http://www.kernel.org/pub/linux/kernel/people/axboe/tools/blktrace.c Thanks Mulyadi Santosa, the link I found was:

Re: Question about linux paging mechanism

2008-03-31 Thread Rik van Riel
On Sun, 30 Mar 2008 17:55:26 +0800 Wu Yu [EMAIL PROTECTED] wrote: Hi all, AFAIK, for IA-32 arch, two-level paging is sufficient. But the positions of PUD and PMD are kept. This is done so all architectures can use the same iterative functions, like unmap_page_range - zap_pud_range -

Re: do ext3 symlinks cost any data blocks?

2008-03-31 Thread Greg Freemyer
On Mon, Mar 31, 2008 at 10:30 AM, Erik Mouw [EMAIL PROTECTED] wrote: On Mon, Mar 31, 2008 at 09:08:12AM -0400, Robert P. J. Day wrote: i'm reading some documentation that claims that neither ext3 device files nor symlinks cost you any data blocks in the filesystem. sure, that's

Re: do ext3 symlinks cost any data blocks?

2008-03-31 Thread Erik Mouw
On Mon, Mar 31, 2008 at 02:20:52PM -0400, Greg Freemyer wrote: You might also want to look into how Extended Attributes are stored (ie. Like ACLs). I assume they use inode blocks as well, but for many / most filesystems they have been grafted into the design after the fact. They use inode

Building a packet in the driver

2008-03-31 Thread cool fire
Hello, This is regarding Wireless LAN driver. I'm working on madwifi and ath5k. I understand that the driver processes a packet it receives from the higher layer. But I want to make and transmit a packet without involving the higher layers using madwifi/ath5k. Could you please tell me how to do

Re: blktrace debugging: how to use it

2008-03-31 Thread Mulyadi Santosa
Hi :) On Mon, Mar 31, 2008 at 10:30 PM, Peter Teoh [EMAIL PROTECTED] wrote: On Mon, Mar 31, 2008 at 12:41 PM, Mulyadi Santosa [EMAIL PROTECTED] wrote: Hi.. All I remember, the user space code is available from Jens Axboe's CVS or

how does opening a char device set the cdev pointer in the inode?

2008-03-31 Thread Robert P. J. Day
(a bit involved so bear with me, i really want to figure out how this works.) i'm following the sample code in the LDD3 book for the scull driver, and i *think* i know the answer to this but i just want to make sure. it has to do with how defining a new character device and opening it

Re: Question about linux paging mechanism

2008-03-31 Thread Wu Yu
Thanks very much! This really helps me a lot. On Tue, Apr 1, 2008 at 3:30 AM, Rik van Riel [EMAIL PROTECTED] wrote: On Sun, 30 Mar 2008 17:55:26 +0800 It means that the kernel pretends that the pgd entry points to a pud (with one entry), even though it really points to a page table. By

Re: Building a packet in the driver

2008-03-31 Thread Michael Blizek
On 17:56 Mon 31 Mar , cool fire wrote: Hello, This is regarding Wireless LAN driver. I'm working on madwifi and ath5k. I understand that the driver processes a packet it receives from the higher layer. But I want to make and transmit a packet without involving the higher layers using