Linux-Development-Sys Digest #312, Volume #8 Thu, 30 Nov 00 09:13:13 EST
Contents:
kernal image ("Yeung Ming")
Re: Module Compilation Problems ("Brian")
Re: Module Compilation Problems (Rand Simberg)
linux/fs.h, struct file_operations, (*lock) fuction ptr help ("Jim Fischer")
Physical Memory (Tim Roberts)
Re: kernel panic: VFS unable to mount root ("Lee Ho")
Re: WHAT "void value not ignored as it ought to be" means when I try to complie a
file? (Tim Roberts)
Re: kernel panic: VFS unable to mount root (Josef Moellers)
Re: Makefile question (Josef Moellers)
Re: kernal image (Josef Moellers)
Re: linux/fs.h, struct file_operations, (*lock) fuction ptr help (Josef Moellers)
Re: kernal image ([EMAIL PROTECTED])
Changing the name of a linux process? ("Freeler News")
Re: kernel panic: VFS unable to mount root (--i've tried using rdev--) ("Karl Heyes")
Re: How to remap PCI memory into user space? AGP (NJOUANNE)
PCMCIA card installation ([EMAIL PROTECTED])
Re: gcc-2.95.2 forces ALL c++ programs to be GPL !!??!# (Nix)
Compilation problem for module on Linux 7.0 ([EMAIL PROTECTED])
notification for route lookup failure (Manel Guerrero Zapata)
Help me . I don't understand this definiiton . ("Harry Xia")
----------------------------------------------------------------------------
From: "Yeung Ming" <[EMAIL PROTECTED]>
Subject: kernal image
Date: Thu, 30 Nov 2000 10:31:39 +0800
hi,
i want to know how many kernel images for a computer that have 4 CPUs? I
think it is one only because it ctrls all CPUs
------------------------------
From: "Brian" <[EMAIL PROTECTED]>
Subject: Re: Module Compilation Problems
Date: Thu, 30 Nov 2000 10:52:20 +0800
> Yes, I did that, at the suggestion of another poster, and it worked.
> My question now is, why did it formerly work without that path? That
> command is the one in the source itself, and I've always used it
> successfully in the past. Is it a kgcc thing?
I think the default search path for include files is /usr/include. In RedHat
6.x, there is a link in that directory: linux -> ../src/linux/include/linux,
so you don't have to specify the include path in command line. The link no
longer exists in RH 7.0.
-Brian
------------------------------
From: [EMAIL PROTECTED] (Rand Simberg)
Subject: Re: Module Compilation Problems
Date: Thu, 30 Nov 2000 04:03:09 GMT
On Thu, 30 Nov 2000 10:52:20 +0800, in a place far, far away, "Brian"
<[EMAIL PROTECTED]> made the phosphor on my monitor glow in such
a way as to indicate that:
>> Yes, I did that, at the suggestion of another poster, and it worked.
>> My question now is, why did it formerly work without that path? That
>> command is the one in the source itself, and I've always used it
>> successfully in the past. Is it a kgcc thing?
>
>I think the default search path for include files is /usr/include. In RedHat
>6.x, there is a link in that directory: linux -> ../src/linux/include/linux,
>so you don't have to specify the include path in command line. The link no
>longer exists in RH 7.0.
Thank you. I'll update the command line in the source...
************************************************************************
simberg.interglobal.org * 310 372-7963 (CA) 307 739-1296 (Jackson Hole)
interglobal space lines * 307 733-1715 (Fax) http://www.interglobal.org
"Extraordinary launch vehicles require extraordinary markets..."
Replace first . with @ and throw out the "@trash." to email me.
Here's my email address for autospammers: [EMAIL PROTECTED]
------------------------------
From: "Jim Fischer" <[EMAIL PROTECTED]>
Subject: linux/fs.h, struct file_operations, (*lock) fuction ptr help
Date: Wed, 29 Nov 2000 20:22:28 -0800
The kernel header file <linux/fs.h> declares a struct named
'file_operations' that contains a function pointer member named 'lock':
struct file_operations {
...
int (*lock) (struct file *, int, struct file_lock *);
...
};
What's the lock function's 'int' argument used for -- i.e., what
value/information am I supposed to pass to the lock function via this 'int'
argument? Tks...
Jim
------------------------------
From: Tim Roberts <[EMAIL PROTECTED]>
Subject: Physical Memory
Date: Wed, 29 Nov 2000 20:43:05 -0800
Let's say that I am a privileged (root) user-mode program on Linux. Is
there a way I can acquire a chunk of unswappable memory, and acquire the
physical address thereof?
I'm working on the XFree86 servers for the S3 Savage chips. The Savage has
the ability to maintain a buffer status word in system memory using bus
mastering. Because of a bug in the memory-mapped status register, it would
be much better if I could use this DMAed status register. To do that, I
need to have a dword at a known physical address that will not change or
disappear for the life of the server.
Do I need to write a kernel driver to help me do this? Is there an
existing kernel service to help user-mode apps do DMA?
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
------------------------------
From: "Lee Ho" <[EMAIL PROTECTED]>
Subject: Re: kernel panic: VFS unable to mount root
Date: Thu, 30 Nov 2000 04:44:58 GMT
Bart De Schuymer Writes:
>I use redhat 7.0
>I compiled Linux v2.4 test7
>
>This is the full panic:
>VFS: cannot open root device "806" or 08:06
>Please append a correct "root=" boot option
>Kernel panic: VFS: Unable to mount root fs on 08:06
>
Does the compiled kernel include SCSI card driver and
SCSI disk driver, EXT2 filesystem, not as module?
These component should be included in the kernel image.
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Lee, Ho. Software Engineer, Embedded Linux Dep, LinuxOne
Mail : [EMAIL PROTECTED] (work), [EMAIL PROTECTED] (personal)
Homepage : http://flyduck.com, http://linuxkernel.to
------------------------------
From: Tim Roberts <[EMAIL PROTECTED]>
Subject: Re: WHAT "void value not ignored as it ought to be" means when I try to
complie a file?
Date: Wed, 29 Nov 2000 21:39:03 -0800
Terry Lee <[EMAIL PROTECTED]> wrote:
>WHAT "void value not ignored as it ought to be" means when I try to
>complie a file?
>I use gcc.
Josef is right. This warning means you had a function declared to return
"void", and you tried to use the result.
void MyFunction( int i ) {
...
}
int main() {
...
j = MyFunction( 3 );
}
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: kernel panic: VFS unable to mount root
Date: Thu, 30 Nov 2000 08:27:11 +0100
Lee Ho wrote:
> =
> Bart De Schuymer Writes:
> >I use redhat 7.0
> >I compiled Linux v2.4 test7
> >
> >This is the full panic:
> >VFS: cannot open root device "806" or 08:06
> >Please append a correct "root=3D" boot option
> >Kernel panic: VFS: Unable to mount root fs on 08:06
> >
> =
> Does the compiled kernel include SCSI card driver and
> SCSI disk driver, EXT2 filesystem, not as module?
> These component should be included in the kernel image.
Either the driver is compiled into the kernel or you have to build and
use an initial ramdisk. Otherwise you'll have the "chicken-and-egg"
problem: how to get to the driver needed to access a disk (which is on
that disk) without having the driver to access the disk?
Under RedHat, the command is mkinitrd.
-- =
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: Makefile question
Date: Thu, 30 Nov 2000 08:31:39 +0100
Mikael Chambon wrote:
> =
> The program I am trying to compile need two others objects in two diffe=
rents
> directories,
> so I wrote 3 rules in my Makefile:
> =
> toto :
> (cd ../../toto;make all)
> =
> titi :
> (cd ../../titi;make all)
> =
> all :
> toto
> titi
> $(NAME)
> =
> OF course name is the main program, the problem is that when I type " =
make
> all", only toto is compile,
> does someone has a trick for me...
Unless your formatting is lost somewhere between your keyboard and my
display, it is strange that toto is compiled at all because you do not
have any dependencies for "all".
If, however, the line for "all" reads
all: toto titi $(NAME)
then the only explanation can be that titi is already up-to-date, but
you should at least see a message like "Nothing to be done for all".
Post The Real Makefile (tm) and the complete output of "make all",
because the data given above is not enough to fully diagnose the
problem.
-- =
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: kernal image
Date: Thu, 30 Nov 2000 08:33:34 +0100
Yeung Ming wrote:
> =
> hi,
> i want to know how many kernel images for a computer that have 4 CPUs? =
I
> think it is one only because it ctrls all CPUs
There is only one kernel image, but there are four "threads of
execution".
Compare it to four cooks working in a kitchen with only a single cooking
book.
-- =
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
------------------------------
From: Josef Moellers <[EMAIL PROTECTED]>
Subject: Re: linux/fs.h, struct file_operations, (*lock) fuction ptr help
Date: Thu, 30 Nov 2000 08:41:18 +0100
Jim Fischer wrote:
> =
> The kernel header file <linux/fs.h> declares a struct named
> 'file_operations' that contains a function pointer member named 'lock':=
> =
> struct file_operations {
> ...
> int (*lock) (struct file *, int, struct file_lock *);
> ...
> };
> =
> What's the lock function's 'int' argument used for -- i.e., what
> value/information am I supposed to pass to the lock function via this '=
int'
> argument? Tks...
If you look into fs/locks.c, you'll find that this is something like
F_SETLK (e.g. look into fcn locks_remove_flock). In my 2.2.13 kernel
source, the first use of this I found in nfs/file.c (most other file
systems don't use this). Unfortunately it just =FCpasses this on to
nlmclnt_proc and I don't have enough time to follow this. Since you have
the sources ...
-- =
Josef M=F6llers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: kernal image
Date: Thu, 30 Nov 2000 08:10:38 -0000
On Thu, 30 Nov 2000 08:33:34 +0100 Josef Moellers <[EMAIL PROTECTED]>
wrote:
| Yeung Ming wrote:
|>
|> hi,
|> i want to know how many kernel images for a computer that have 4 CPUs? I
|> think it is one only because it ctrls all CPUs
|
| There is only one kernel image, but there are four "threads of
| execution".
| Compare it to four cooks working in a kitchen with only a single cooking
| book.
And most of the time the four cooks know what they are cooking and only
occaisionally need to consult the cookbook. This is the CPU cache.
--
=================================================================
| Phil Howard - KA9WGN | Dallas | http://linuxhomepage.com/ |
| [EMAIL PROTECTED] | Texas, USA | http://phil.ipal.org/ |
=================================================================
------------------------------
From: "Freeler News" <[EMAIL PROTECTED]>
Subject: Changing the name of a linux process?
Date: Thu, 30 Nov 2000 10:11:22 +0100
Hi,
Can anyone tell me whether its possible for a process to customise the name
that appears for it when you do a 'ps' command?
I thought it might be, because the sendmail process seems to customise
itself
such that you get 'sendmail: accepting connections on port 25' appear.
Jason.
------------------------------
From: "Karl Heyes" <[EMAIL PROTECTED]>
Subject: Re: kernel panic: VFS unable to mount root (--i've tried using rdev--)
Date: Wed, 29 Nov 2000 23:45:00 +0000
In article <[EMAIL PROTECTED]>, "Bart De Schuymer"
<[EMAIL PROTECTED]> wrote:
> I use redhat 7.0 I compiled Linux v2.4 test7
>
> This is the full panic: VFS: cannot open root device "806" or 08:06
> Please append a correct "root=" boot option Kernel panic: VFS:
> Unable to mount root fs on 08:06
>
> This is what I've tried: Finding out the root partition of my Redhat
> 7.0 standard kernel: rdev
> --> /dev/sda6 /
> (behind the 6 is a space and a slash, don't know why, but I thought
> I'd just add it to be complete)
>
Check you have the controller and scsi disk support in the kernel
that you have built. The bootup messages you see on screen before
the mounting of the root partition would be a usefult start. It
should identify a SCSI controller and a set of SCSI devices.
karl.
------------------------------
From: [EMAIL PROTECTED] (NJOUANNE)
Date: 30 Nov 2000 10:43:50 GMT
Subject: Re: How to remap PCI memory into user space? AGP
Excuse-me for my langage because i am French!
I want use DMA with PCI.
Move ram_core => ram_pci.
(for use the AGP bus)
Thanks
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.apps
Subject: PCMCIA card installation
Date: Thu, 30 Nov 2000 18:57:28 +0800
Dear all,
I am not sure whether this is the right place to ask my question. I have
just setup a Linux RedHat 6.0 on a laptop. Everything is fine and I am
now able to get into the GNOME/KDE interface.
I would like to install the driver for a PCMCIA card. I slotted in a
"Xircom CreditCard Ethernet 10/100Ready", then I restarted the system.
The card is not detected, I supposed. I have no idea on how to install
the driver for any PCMCIA card. May I know:
1. How should I verify that the driver for PCMCIA controller has been
detected and installed correctly ? The laptop come with a Ricoh cardbus
controller.
2. How should I install the driver for any PCMCIA card that is slotted
in ?
3. If everything is fine, can I have hot swap of PCMCIA card just like
Win98/2000 ? How should I stop the driver before the eject the card?
Any advice will be very much appreciated. If this is not the right place
for this sort questions, please inform me of a better newsgroup that I
can expect replies. Thank you.
------------------------------
From: Nix <$}xinix{[email protected]>
Subject: Re: gcc-2.95.2 forces ALL c++ programs to be GPL !!??!#
Date: 30 Nov 2000 08:21:27 +0000
[EMAIL PROTECTED] writes:
> Philip Armstrong <[EMAIL PROTECTED]> wrote:
> > If you even link dynamically to a GPLd piece of code then you're
> > affected by the GPL. Thats why the LGPL exists.
>
> No. The LGPL exists almost entirely because of bison, which was the
> main bone of contention years ago. (Even prior to C++ ;)
Even though bison has never been covered by the LGPL?
> The problem is that bison, like yacc, includes a substantial amount of
> source code in the form of a stock parser to whatever parser it
> generates. In fact, it's not unusual for the included program
> statements to actually outnumber those provided by the user.
... and there is a single source file, bison.simple, which states
,----
| /* As a special exception, when this file is copied by Bison into a
| Bison output file, you may use that output file without restriction.
| This special exception was added by the Free Software Foundation
| in version 1.24 of Bison. */
`----
I'd imagine that the LGPL exists more because of things like the GNU C
Library.
> The fact that the same problems are creeping up again is just a sign
> that the GPL has lived past its time. None of the concerns it was
> built to address really remain today, nor are they likely to
> resurface.
Keeping software free certainly *is* still a concern!
> As to arguing which license linking applies too, that's an academic
> exercise at best. It's never been tested in court, nor is it likely to
> be. Most arguments seem to center around the opinion of the FSF's
> lawyers, which is somewhat unimpressive.
And exactly how else are they supposed to work, when the GPL has not
been tested in court? There's nobody else's opinion to go on!
--
`The phrase `causes storage to be reserved', doesn't mean that it causes
storage to be reserved. This is a fundamental misunderstanding of
Standardeze.' --- Mike Stump on the GCC list
------------------------------
From: [EMAIL PROTECTED]
Subject: Compilation problem for module on Linux 7.0
Date: Thu, 30 Nov 2000 11:11:28 GMT
hi
I am getting the following warning when I compile my kernel module on
redhat linux 7.0
/tmp/ccmIsPtz.s: Assembler messages
/tmp/ccmIsPtz.s:Warning: Ignoring changed section attributes
for .modinfo
I am compiling the module using
gcc -c O6 Wall -D_KERNEL_ -DMODULE -DLINUX_ -I/usr/src/linux/include
modulename.c
If I try compiling the same module using the same flags on Linux 6.1 it
dosen't give any problem. Any idea why this should happen?
thanks
madhura
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Manel Guerrero Zapata <[EMAIL PROTECTED]>
Subject: notification for route lookup failure
Date: Thu, 30 Nov 2000 13:39:06 GMT
Hi :)
I'm doing a small user space program that needs to know when an
application looks up for a route (in kernel space), and that route
does not exist in the routing table.
Of course the kernel notifies the application that is looking up
for the route, but not to mine.
I think in some old versions there was a Linux kernel routing message
('RTM_MISS') that was sent to user space when a lookup fails in the
routing table. But I think it is not anymore there.
Also some people seem to capture network packets to see if there are
any ARP requests on the network interfaces. But this solution is only
valid for ethernet devices. It does not work in others like Point to
Point, etc. So is not good enough for my program.
I was just wondering if some of you would know a solution.
Maybe there is a way to do it from user-space...
Maybe there is a kernel patch or a kernel module...
BTW, I'm using Linux 2.2.X but I would not mind to go to 2.4.X if it
helps.
Any help is greately apreciated.
If there is some newsgroup to post this kind of questions, please
tell me.
Thanks in advance,
Manel
------------------------------
From: "Harry Xia" <[EMAIL PROTECTED]>
Subject: Help me . I don't understand this definiiton .
Date: Thu, 30 Nov 2000 21:08:32 +0800
Hello , I often see the definition like below :
struct
{
int a;
char ch_buf[1]; // I don't understand
}foo;
Why define like char ch_buf[1] ? I think it can
be defined to pointer: char * ch_buf, or
char ch_buf[MAX_NUMBER] .
In fact , 'char ch_buf[1]' is used as an array
which buffer is more than 1 .
I don't know how to use ch_buf . I can't assign
a buffer pointer to it . How can I let the ch_buf
point to another buffer
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************