Linux-Development-Sys Digest #705, Volume #7 Sat, 25 Mar 00 10:13:10 EST
Contents:
Re: Problem with insmod and rmmod (Behfar Bastani)
how to call socket() from within kernel? (Behfar Bastani)
symtab_begin.h and symtab_end.h: what do I use in 2.2? (Timur Tabi)
Re: Problem with insmod and rmmod ("Robert Karlsson")
Re: 2.2.x->2.3.x DKI changes ("Kiran Panesar")
/proc/ksyms? (Weiguang Shi)
Re: Absolute failure of Linux dead ahead? (The Ghost In The Machine)
LETS MAKE GAMES!!!!!!!!!!! ("Mickel")
Re: /proc/ksyms? ("D. Stimits")
Re: /proc/ksyms? (Weiguang Shi)
seq num generation (mas)
Linux Kernel Installation Problems??????? ("drunKmonK")
Re: Zero padding in sprintf() doesn't work for strings - HELP ! (Frank T Lofaro)
Network Daemon App ("Brian Patterson")
Re: ioctl block pthread_create ?? (Nathan Krasney)
Re: Absolute failure of Linux dead ahead? ("Joseph T. Adams")
Kernel 2.3.99-pre3 & inode.c problem ([EMAIL PROTECTED])
----------------------------------------------------------------------------
From: Behfar Bastani <[EMAIL PROTECTED]>
Subject: Re: Problem with insmod and rmmod
Date: Fri, 24 Mar 2000 11:55:42 -0800
Timur Tabi wrote:
>
> I'm using Rubini's book "Linux Device Drivers", and I've come across a
> problem with the first example. The driver compiles and insmod works
> fine (I get the "Hello world" message), but rmmod doesn't work. Here's
> what I get:
> [root@linux hello]# rmmod hello.o
> rmmod: module hello.o not loaded
i encountered the same thing, and found that "rmmod hello" works.
bb
------------------------------
From: Behfar Bastani <[EMAIL PROTECTED]>
Subject: how to call socket() from within kernel?
Date: Fri, 24 Mar 2000 11:57:15 -0800
i'm writing a kernel module which needs to send/receive TCP packets
to/from another linux box. how does one set up a socket struct from
within the kernel, and then pass that to "send/recv"? (ie their kernel
equivalents..)
i have tried to answer that question by looking at what a user's
socket() syscall gets trapped to within the kernel, but haven't made
any real progress.
bb
------------------------------
From: Timur Tabi <[EMAIL PROTECTED]>
Subject: symtab_begin.h and symtab_end.h: what do I use in 2.2?
Date: Fri, 24 Mar 2000 20:05:00 GMT
It appears that the header files symtab_begin.h and symtab_end.h are no
longer used in the 2.2 kernel. What do I use in 2.2? I can't find a
kernel programming resource (on the web or in the bookstore) that talks
about 2.0->2.2 differences.
--
Remove "nospam_" from my email address when replying
Timur "too sexy for my code" Tabi, [EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Robert Karlsson" <[EMAIL PROTECTED]>
Subject: Re: Problem with insmod and rmmod
Date: Fri, 24 Mar 2000 20:28:59 GMT
You forgot to read page 27.
"Timur Tabi" <[EMAIL PROTECTED]> wrote in message
news:8bgarb$70r$[EMAIL PROTECTED]...
> I'm using Rubini's book "Linux Device Drivers", and I've come across a
> problem with the first example. The driver compiles and insmod works
> fine (I get the "Hello world" message), but rmmod doesn't work. Here's
> what I get:
> [root@linux hello]# rmmod hello.o
> rmmod: module hello.o not loaded
> [root@linux hello]# insmod hello.o
> hello.o: a module named hello already exists
> So which is it? Is hello.o loaded or not? And if it is, how do I unload
> it?
> Here's the source code:
> #define MODULE
> #include <linux/module.h>
> int init_module(void)
> {
> printk("<1>Hello, world\n");
> return 0;
> }
> void cleanup_module(void)
> {
> printk("<1>Goodbye cruel world\n");
> }
> --
> Remove "nospam_" from my email address when replying
> Timur "too sexy for my code" Tabi, [EMAIL PROTECTED]
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
From: "Kiran Panesar" <[EMAIL PROTECTED]>
Subject: Re: 2.2.x->2.3.x DKI changes
Date: Fri, 24 Mar 2000 15:55:29 -0800
Thanks,
Richard's page was useful.
However, when I interruptible_sleep_on and wake
cause kernel BUGs.
I am on 2.3.99-pre2 and here is a simple piece of code
static DECLARE_WAIT_QUEUE_HEAD(wq);
int read(....){
interruptible_sleep_on(&wq);
return 1;
}
int write(....){
wakeup(&wq);
return 1;
}
This code is in a module that I am loading.
The BUG happens in include/asm/spinlock.h:80
invalid operand:0000
Any suggestions?
Thanks.
Kiran
Robert Lynch <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Bill Waddington wrote:
> >
> > Hello,
> >
> > I there somewhere a list of driver/kernel interface changes between 2.2
> > & 2.3? I think someone is working on Rubini II, but for now it would be
> > sufficient to just have a list of the names of kernel functions and
> > driver-related structures that have changed.
> >
> > I am trying to port a 2.2 chaining DMA driver to 2.3.51 and get it
> > running before adding the kiobuf stuff. So far I have tripped over
> > pci_dev and notice that something has changed w/wait queues, but I
> > suspect that there is more.
> >
> > Thanks to all,
> > Bill
> >
> > --
> > Bill Waddington
> > [EMAIL PROTECTED]
> > [EMAIL PROTECTED]
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.
>
> Richard Gooch's page:
>
> http://www.atnf.csiro.au/~rgooch/linux/docs/porting-to-2.3.html
>
> may (or may not) prove helpful.
>
> Cheers, Bob L.
> --
> Robert Lynch-Berkeley CA [EMAIL PROTECTED]
------------------------------
From: Weiguang Shi <[EMAIL PROTECTED]>
Subject: /proc/ksyms?
Date: Fri, 24 Mar 2000 17:45:36 -0700
Hi, there:
I wanted to take a look at the /proc/ksyms file but couldn't find it.
Why? Do the recent kernels do without it? Or the OS could be built
without it by ignoring the module support option?I am on a machine with
2.2.10 kernel.
Thanks a lot.
Weiguang
Weiguang Shi | E-mail: [EMAIL PROTECTED]
Department of Computing Science | http://www.cs.ualberta.ca/~wgshi
University of Alberta | Office: CAB 481
Edmonton, AB, Canada, T6G 2H1 | (O) (780)492-3927
------------------------------
From: [EMAIL PROTECTED] (The Ghost In The Machine)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Absolute failure of Linux dead ahead?
Date: Sat, 25 Mar 2000 00:53:13 GMT
In comp.os.linux.advocacy, Mike <[EMAIL PROTECTED]>
wrote on Fri, 24 Mar 2000 10:29:02 -0500 <[EMAIL PROTECTED]>:
>The Ghost In The Machine wrote:
>>
>> In comp.os.linux.advocacy, Geoff Lane <[EMAIL PROTECTED]>
>> wrote on Fri, 17 Mar 2000 11:59:05 +0000 <9m6ta8.7kp.ln@twirl>:
>> >In article <[EMAIL PROTECTED]>,
>> > Bill Godfrey <[EMAIL PROTECTED]> writes:
>> >> Use a standard library where time_t is a 64 bit signed integer (the new
>> >> C standard requires such an integer type) and keep using C. No need to
>> >> change languages.
>> >
>> >There are many reasons to keep C out of inexpert hands ( and there's only
>> >about 5 experts - three of whom devised the language!)
>>
>> Would you rather we rewrite the kernel in Fortran or COBOL? :-)
>>
>> [.sigsnip]
>>
>> --
>> [EMAIL PROTECTED] -- insert random misquote here
>
>
>Hey! How about BASIC! ;->
Which variant? :-)
I have worked with, or know of, at least the following:
- an old HP basic that ran on 21xx hardware (and that's very very
old hardware!)
- Apple ][ integer Basic
- Apple /// floating point Basic
- IBM's built-in Basic interpreter on early-model PC's
- GWBasic
- ABasic (AmigaDOS)
- AmigaBasic (AmigaDOS)
- Commodore 64 Basic
- TRS-80
- Chipmunk
- Microsoft Basic (various versions)
and of course
- Microsoft Visual Basic
There are undoubtedly even earlier variants.
As far as I know, all of these are more or less syntactically
incompatible for any but the very simplest constructs.
--
[EMAIL PROTECTED] -- is something called "Basic" supposed to
be this complicated? :-)
------------------------------
From: "Mickel" <[EMAIL PROTECTED]>
Subject: LETS MAKE GAMES!!!!!!!!!!!
Date: Sat, 25 Mar 2000 01:06:50 GMT
WE MUST MAKE GAMES!!!!!!! Is what i am stressing. With linux getting more
user friendly by the day we need to capture the brand new audiences of linux
and sweep them off there feet even more. There are plenty of resources about
the web most of which are free that i have found. Such as 3d engines and
audio engines, excellant graphics programs and animation programs, even the
program that made the Toy Story� characters come to life.
I am looking to make games of any types Rpg's, 3d shooters, strategies,
race car games the list goes on.
WE CAN DO ANYTHING!! We need a bunch of developers to kickstart this
project and earn a nice side pocket of money at the same time the "prime"
developers will gather a stake in the business equal to that of their input.
Ofcourse the games will be relativly cheap per release. They will be highly
competitive games in terms of graphics, style and Sound FX etc. These games
are no little projects. Myself and whoever wants to be well known in the
linux world will establish the masterful Linux OS as the mainstream gamers
platform. IT WILL BE BIG!!!
I believe there are enough fellow computer nerds (developers, graphic
artists, designers, story writers or anyone of use) to bring this project to
be a major company in the soon to be mainstream, Linux OS.
I think to myself that in the world of windows, companies like Blizzard�
and IDsoftware� made the big bucks in the up and coming OS of the 80's,
early 90's of course i am talking about MS Windows�. With companies such as
these the competion is very fierce and is very hard for small gaming
companies to crack on to the lucrative market.
With Linux taking a very rapid stamp on the computer market we may as well
get our "foot in the door" first and establish our position as the major
gaming company of Linux.
All that said and done if u are interested in making games and you think
you have something to offer a newly forming company then email me with your
ideas and possible positions of developement, artistry or any other
positions i mentioned.
Thankyou and goodnight.
The way to enlightenment is Linux:)
email me: [EMAIL PROTECTED] Be quick to send!
------------------------------
Date: Fri, 24 Mar 2000 19:36:09 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: /proc/ksyms?
Weiguang Shi wrote:
>
> Hi, there:
> I wanted to take a look at the /proc/ksyms file but couldn't find it.
> Why? Do the recent kernels do without it? Or the OS could be built
> without it by ignoring the module support option?I am on a machine with
> 2.2.10 kernel.
> Thanks a lot.
>
> Weiguang
>
> Weiguang Shi | E-mail: [EMAIL PROTECTED]
> Department of Computing Science | http://www.cs.ualberta.ca/~wgshi
> University of Alberta | Office: CAB 481
> Edmonton, AB, Canada, T6G 2H1 | (O) (780)492-3927
I would assume you enabled /proc support during kernel compile. If so,
I wonder if a missing /boot/System.map would cause this (does anyone
know if System.map is the source of /proc/ksyms?). My 2.2.12 and
2.2.14 kernels both have the /proc/ksyms, and both are filled.
------------------------------
From: Weiguang Shi <[EMAIL PROTECTED]>
Subject: Re: /proc/ksyms?
Date: Fri, 24 Mar 2000 20:20:50 -0700
Thanks for your response.
I just did a "/sbin/lsmod" and get the following results:
Module Size Used by
lsmod: QM_MODULES: Function not implemented
So I began to doubt the kernel was not compiled with support for modules.
Then I looked at the .config file under /usr/src/linux and found the macro
CONFIG_MODULES was not set.
So the conclusion here should be
/proc/ksyms will not appear unless there is module support
built up in the kernel.
Weiguang
Weiguang Shi | E-mail: [EMAIL PROTECTED]
Department of Computing Science | http://www.cs.ualberta.ca/~wgshi
University of Alberta | Office: CAB 481
Edmonton, AB, Canada, T6G 2H1 | (O) (780)492-3927
------------------------------
From: mas <[EMAIL PROTECTED]>
Subject: seq num generation
Date: Sat, 25 Mar 2000 05:30:25 GMT
Does anyone know where in the kernel source is the for the TCP sequence
number generators?
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: "drunKmonK" <[EMAIL PROTECTED]>
Subject: Linux Kernel Installation Problems???????
Date: Fri, 24 Mar 2000 22:04:04 -0800
When I try installing Linux Mandrake on my cpu it gives me this error
message:
VFS: Cannot open root device 08:01
Kernel panic: VFS: Unable to mount root FS on 08:01
heres my info if it helps:
Dell Pentium II
400 mhz
Windows 98
Hp cd writer plus Burner
Riva/TNT AGP Graphics Card
Sporster 56k fax Modem
Cannon BJC-4400
PLEASE HELP I NEED LINUX
------------------------------
From: Frank T Lofaro <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Zero padding in sprintf() doesn't work for strings - HELP !
Date: 25 Mar 2000 03:49:51 GMT
In comp.os.linux.development.system Wolfram Gloger <[EMAIL PROTECTED]> at
23 Mar 2000 16:13:23 +0100 wrote:
WG> Therefore, the following piece of code
>> sprintf (buff,"%06s", LenBuf);
WG> invokes undefined behaviour.
>> It seems as if the output on Linux is wrong(using Blanks instead of zeros).
WG> No, it could also just crash or print `bug-bug!' and exit.
WG> Regards,
WG> Wolfram.
Or it could actually do a USEFUL behavior, such as pad with zeros.
Just because something is undefined doesn't mean we have to do
something stupid. (ignoring the flag is stupid, when it is obvious
what is meant).
------------------------------
From: "Brian Patterson" <[EMAIL PROTECTED]>
Subject: Network Daemon App
Date: Sat, 25 Mar 2000 03:36:35 -0600
Hi all,
I came upon a need for a application - that when run, accepts up to 144
client connections. These clients - will send a string of data once a
second (or so). once the data is recieved - the program needs to either
fork or create a new thread where I will process the line of data. I've run
into a problem that (*Sometimes*) when the data is sent from the client -
the server doesn't see it until the client closes that connection.
Currently the data is a fixed length but in my initial app - I made it
accept everything up to a '\n'. Does anyone know of some good -simple-
source of a daemon that will operate in this fashion? (i.e. - accepts
network connections - listens for data and then forks or creates a new
thread to handle it). I have all of Stevens books but I'm rather new to
network programming so I'm afraid they don't help me much.
I suppose creating a new thread for each client would work as well.
Thanks!
-Brian Patterson
------------------------------
From: Nathan Krasney <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.programmer,comp.unix.questions,comp.unix.solaris
Subject: Re: ioctl block pthread_create ??
Date: Sat, 25 Mar 2000 11:34:53 +0200
Thank you for your answer.
did you test this little example and get the same phenomenon also for linux ?
is there any documentation that can explain this phenomenon ?
Mathias Waack wrote:
> Nathan Krasney wrote:
> > i have very strange phenomenon. i have a user mode application that talk
> > to a file system driver via ioctl. this ioctl is envoked by user mode
> > thread , problem is that creation of a new thread is suspended by the os
> > until this ioctl return !!!
> >
> > e.g.
> > main()
> > {
> > pthread_create run f1()
> > pthread_create run ioctl
> > pthread_create run f2()
> > while(1)
> > ......;
> > }
> >
> > f1 will continue to run independently but f2 will NOT start running
> > until the ioctl has return !!
>
> Maybe the ioctl locks the kernel. Then the pthread_create (which
> calls clone()) stalls until ioctl finishes.
> Thats the situation under Linux, I don't know how it is or could be
> under Solaris.
>
> HTH
> Mathias
>
> --
> Mathias Waack | [EMAIL PROTECTED]
> Tel.: +49 621 181 2717 Fax.: +49 621 181 2713
------------------------------
From: "Joseph T. Adams" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Absolute failure of Linux dead ahead?
Date: 25 Mar 2000 13:38:29 GMT
In comp.os.linux.advocacy Warren Young <[EMAIL PROTECTED]> wrote:
: Face it, there's a prejudice in favor of C. It can't be considered
: anything other than prejudice, because logical arguments in favor of
: other languages fail regularly.
This is not prejudice. I don't especially like C, and I wish there
were something better that could replace it, but as yet nothing has
proven to be even as good as C, much less better, for what C is mainly
used for: development of compact and portable systems software.
Anything that replaces C would have to be almost as fast, and would
have to offer advantages that C doesn't. The only language AFAIK that
meets both criteria is C++. C++ is being adopted only very slowly in
the Linux world, for reasons I consider quite understandable.
The main problem with C++ IMO is that pre-Standard C++ is not even
close to being portable, and Standard C++ is very complex and
therefore very difficult to implement correctly.
For large, monolithic projects such as KDE and Mozilla, C++ is great,
because it can work at high and low levels of abstraction
simultaneously, and it is unique among widely-used languages in that
regard.
But for a system like Unix or Linux which is based on small, fast,
robust components that are glued together by higher level scripting
languages (most of which support OOP), C++ has relatively little to
offer.
As time goes on, C++ implementations will improve, and it is possible
that the Standard will evolve to support subsets of the language that
are smaller and easier to implement. (Embedded systems need a smaller
C++ far more than Linux does.) I would assume that at that point, we
will see more large pieces of open-source software switching to C++.
Joe
------------------------------
From: [EMAIL PROTECTED]
Subject: Kernel 2.3.99-pre3 & inode.c problem
Date: Sat, 25 Mar 2000 14:07:23 GMT
Everytime when I shut my linux system down and it's booted a recent 2.3
kernel (including the current latest 2.3.99-pre3) I get millions of error
messages:
iput: inode 00:03/<some large number> count wrapped
an error message out of inode.c.
When the system reboots (after a reset) the only filesystem that needs
checking is / and there are no errors.
Booting with 2.2 works fine.
Any ideas what is causing the problem ?
Ps:
other questions: what filesystem is 00:03 ????
if I do a global find on the inode number reported, no file is found.
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
** 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
******************************