Re: where I can get the reference for linux instructions?

2008-10-22 Thread Anuz Pratap Singh Tomar
I would suggest that to learn all basic command and how they are categorized, u can use any of Redhat bibles or you can use Redhat document RH-033. Warning: These documents and books are highly Redhat dependent. But you can get a very clear Idea of how commands are divided and how can you use them

Re: where I can get the reference for linux instructions?

2008-10-22 Thread Sunil
On Wed, Oct 22, 2008 at 10:27 AM, nidhi mittal [EMAIL PROTECTED]wrote: i think best book for this is -- linux pocket guide... as it gives you all shell command in -- categories. and that too very brief selected useful options..crisp useful information ... i found it very helpful. Nidhi

Re: sched summary

2008-10-22 Thread rahul p
On 10/22/08, Vikram_Upparpalli [EMAIL PROTECTED] wrote: Hi Peter, Ps: Pardon me if my understanding is wrong. OS is VRTX (Versatile Real Time Execute) from the Mentor Graphics. Yes it is an RTOS where the timeliness is determined already... like I have decided to run one task (say X)

Re: sched summary

2008-10-22 Thread rahul p
On 10/22/08, Vikram_Upparpalli [EMAIL PROTECTED] wrote: Hi Peter, Ps: Pardon me if my understanding is wrong. OS is VRTX (Versatile Real Time Execute) from the Mentor Graphics. Yes it is an RTOS where the timeliness is determined already... like I have decided to run one task (say X)

RE: sched summary

2008-10-22 Thread Vikram_Upparpalli
Hi Rahul, Thank you for the input. I ill get back after checking. Thanks and Regards Vikram Upparpalli Telephone: 040-3063 3535 Mobile: 9985152191 [cid:image001.gif@01C93447.250A8AA0] From: rahul p [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2008 1:04 PM To: Vikram_Upparpalli Cc:

Re: where I can get the reference for linux instructions?

2008-10-22 Thread Vineet Agarwal
In my Regards Your UNIX: The Ultimate Guide by Sumitabha Das and Beginning Linux Programming by neil mathews and Richard Stones is a good book to start. On Wed, Oct 22, 2008 at 11:46 AM, Sunil [EMAIL PROTECTED]wrote: On Wed, Oct 22, 2008 at 10:27 AM, nidhi mittal [EMAIL PROTECTED]wrote: i

Re: Where the modules for found PCI devices is loaded?

2008-10-22 Thread Thomas Petazzoni
Le Sat, 18 Oct 2008 19:32:16 +0900, J.H.Kim [EMAIL PROTECTED] a écrit : I'm reading kernel source code for the first time. First, I'd like to know how the PCI driver works. I found the routines which scans PCI bus and and add data structure of the found devices into bus data

Using copy_to_user with a buffer bigger than 4K

2008-10-22 Thread Jonathan 'Arrouan' ROUZAUD-CORNABAS
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm writing a kernel module (char device) to communicate some data (execution trace) from the kernel space to the user space. My traces are contains in a 512K buffer allocate with vmalloc. When I try to send them to userspace using

patch for kernel 2.4

2008-10-22 Thread Thomas Rega
Hi folks, hope to be not totally wrong on this list ... Can anybody tell where to post patches for linux-kernel version 2.4.x ??? Is it done via the normal' Linux Kernel Mailing List or is there a special one for kernel 2.4 ??? TIA -- To unsubscribe from this list: send an email with

Linux and the L1/L2 caches

2008-10-22 Thread Ray Kinsella
Hi, I have a process that fork's itself into 10 sub-processes, all of which are very active, CPU usage is about 85%. The system I am using has a very small L1/L2 cache that is being trashed by the processes's working set moving in and out of cache. I am worried about cache line conflicts. Is

Re: Where the modules for found PCI devices is loaded?

2008-10-22 Thread Peter Teoh
Hi Thomas, On Wed, Oct 22, 2008 at 4:03 PM, Thomas Petazzoni [EMAIL PROTECTED] wrote: Le Sat, 18 Oct 2008 19:32:16 +0900, J.H.Kim [EMAIL PROTECTED] a écrit : I'm reading kernel source code for the first time. First, I'd like to know how the PCI driver works. I found the routines

LDD3: tiny_serial and tiny_tty

2008-10-22 Thread luca ellero
Hi everybody, I'm trying to compile the examples of LDD3 with kernel 2.6.22. I get them from: http://www.oreilly.com.cn/codeexample/ldd3/ I have some problems/questions regarding tiny_tty.c and tiny_serial.c (tty directory concerning chapter 18) 1) Are they tty or uart drivers? What is the

Re: patch for kernel 2.4

2008-10-22 Thread Frédéric Weisbecker
2008/10/22 Thomas Rega [EMAIL PROTECTED]: Hi folks, hope to be not totally wrong on this list ... Can anybody tell where to post patches for linux-kernel version 2.4.x ??? Is it done via the normal' Linux Kernel Mailing List or is there a special one for kernel 2.4 ??? Hi Thomas, Yes,

Re: LDD3: tiny_serial and tiny_tty

2008-10-22 Thread Anuz Pratap Singh Tomar
hi there, Since API have changed so much, you need to change the code in accordance. I was having some problem for all drivers i was compiling with my .23 kernel there is this guy who have updated all drivers for .25 kernel at this link:

Re: Where the modules for found PCI devices is loaded?

2008-10-22 Thread Thomas Petazzoni
Le Wed, 22 Oct 2008 19:24:56 +0800, Peter Teoh [EMAIL PROTECTED] a écrit : So are all these vendor ID - which are statically defined inside the sky2.ko module, somehow made to go into modules.alias as well? (at compilation time, i supposed) This is done at compile time by depmod, which

Re: Linux and the L1/L2 caches

2008-10-22 Thread Rene Herman
On 22-10-08 11:25, Ray Kinsella wrote: I have a process that fork's itself into 10 sub-processes, all of which are very active, CPU usage is about 85%. The system I am using has a very small L1/L2 cache that is being trashed by the processes's working set moving in and out of cache. I am

Re: Where the modules for found PCI devices is loaded?

2008-10-22 Thread Peter Teoh
On Wed, Oct 22, 2008 at 8:28 PM, Thomas Petazzoni [EMAIL PROTECTED] wrote: Le Wed, 22 Oct 2008 19:24:56 +0800, Peter Teoh [EMAIL PROTECTED] a écrit : So are all these vendor ID - which are statically defined inside the sky2.ko module, somehow made to go into modules.alias as well? (at

Re: Linux and the L1/L2 caches

2008-10-22 Thread Raz
These is an excellent atricle What every programmer should about memory of Erlich dreeper. you will see what happens when you exceed L2,L1... On Wed, Oct 22, 2008 at 1:54 PM, Rene Herman [EMAIL PROTECTED] wrote: On 22-10-08 11:25, Ray Kinsella wrote: I have a process that fork's itself into

Re: Linux and the L1/L2 caches

2008-10-22 Thread Belisko Marek
Yes, great article can be found at: http://lwn.net/Articles/250967/ Thanks Marek On Wed, Oct 22, 2008 at 6:57 PM, Raz [EMAIL PROTECTED] wrote: These is an excellent atricle What every programmer should about memory of Erlich dreeper. you will see what happens when you exceed L2,L1... On

Re: any one knows how to truncate a file from its begining ?

2008-10-22 Thread Daniel Baluta
What do you mean by truncating at the begining ? thanks, Dan. On Wed, Oct 22, 2008 at 8:12 PM, Raz [EMAIL PROTECTED] wrote: or a file system that can do it ? thank you raz -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to [EMAIL PROTECTED] Please read the

Re: any one knows how to truncate a file from its begining ?

2008-10-22 Thread Raz
no. I mean i want to remove a portion of the file : if a file is composed of : a,b,c,d blocks. I want to be able to remove from the **disk** block c or block a. ftruncate remove the end. On Wed, Oct 22, 2008 at 7:24 PM, Manish Katiyar [EMAIL PROTECTED] wrote: On Wed, Oct 22, 2008 at 10:42 PM,

Re: any one knows how to truncate a file from its begining ?

2008-10-22 Thread Manish Katiyar
On Wed, Oct 22, 2008 at 10:42 PM, Raz [EMAIL PROTECTED] wrote: or a file system that can do it ? What does that mean ??? just doing $ filename on command line will truncate itor probably man ftruncate can help you. Thanks - Manish thank you raz -- To unsubscribe from this

Re: any one knows how to truncate a file from its begining ?

2008-10-22 Thread Karl Tatgenhorst
if it is a binary file, use dd and figure out the offset to start from (man dd will help). If it is a text file just use some perl like this: #open your file here $count=0; $start_removing= 100; ###starting at 100 $stop_removing= 300; ###end of block to remove whileFILE { $count++;

Re: any one knows how to truncate a file from its begining ?

2008-10-22 Thread Raz
I think XFS can do it . it has some un/reserve space ioctl. 3521/* 3522 * XFS_IOC_RESVSP and XFS_IOC_UNRESVSP will reserve or unreserve 3523 * file space. 3524 * These calls do NOT zero the data space allocated to the file, 3525 * nor do they change the

trouble with kgdb serial port debugging against 2.6.21

2008-10-22 Thread Vasilis Liaskovitis
Hi, I am a beginner trying to setup kgdb debugging for an x86_64 target using the serial port I have tried using kernel 2.6.21.1 and 2.6.21.7 with the latest kgdb repository patches (the repository patches at http://sourceforge.net/projects/kgdb are against 2.6.21) I have applied the following

Re: any one knows how to truncate a file from its begining ?

2008-10-22 Thread Sandeep K Sinha
On Thu, Oct 23, 2008 at 1:14 AM, Raz [EMAIL PROTECTED] wrote: I think XFS can do it . it has some un/reserve space ioctl. 3521/* 3522 * XFS_IOC_RESVSP and XFS_IOC_UNRESVSP will reserve or unreserve 3523 * file space. 3524 * These calls do NOT zero the data