Linux-Development-Sys Digest #291, Volume #8 Tue, 21 Nov 00 03:13:06 EST
Contents:
Re: auto power off (Alex Deucher)
information about modules vs. devices (David A. Rogers)
Re: Annotated assembler source from gcc??? (Dave Platt)
Modularization of network manipulation software ([EMAIL PROTECTED])
How to install file system driver (kernel module)? ([EMAIL PROTECTED])
correction of misprint ([EMAIL PROTECTED])
LINUX Programmers are needed in RTP, NC ("Anette Nordvall")
Re: SMP & interrupts (Johan Kullstam)
Re: What distro does Linus Torvalds use? (bill davidsen)
Re: Interprocess Communication ... (bill davidsen)
Re: Developing kernel (bill davidsen)
Shared Object Libraries (DLLs) (James Moe)
Re: injecting keystrokes into virtual console (Bryan Hackney)
Re: What distro does Linus Torvalds use? (Michael V. Ferranti)
about ARP in linux 2.2.16 (dream_seeker)
Re: Shared Object Libraries (DLLs) ("Lee Ho")
Re: Shared Object Libraries (DLLs) (Paul Kimoto)
Problems with more than one Decision PCCom 8 port Serial card at a time (Leendert
Meyer)
----------------------------------------------------------------------------
Date: Fri, 17 Nov 2000 17:38:44 -0500
From: Alex Deucher <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: auto power off
all you have to do is edit your /etc/rc.d/halt or rc.halt, I can't
remember the exact name and replace the line
"halt"
with
"halt -p"
Also if you are using an smp kernel and want the system to power off,
make this change and then append "apm=power-off" to lilo.conf
Alex
Fokkema DBRA wrote:
>
> Hi!
>
> I just upgraded from RH6.2 to RH7.0 and I noticed something slightly irritating.
> When I shut down my system under RH6.2 the kernel automatically powered down
> the system. Under RH7.0, it just halts the system. Why is this? Is it a kernel
> problem (just switch this option and recompile?) or do I have to edit some
> file or is it something else?
>
> Hope that someone can help.
>
> Regards,
>
> David
------------------------------
From: [EMAIL PROTECTED] (David A. Rogers)
Crossposted-To: comp.os.linux.misc
Subject: information about modules vs. devices
Date: 20 Nov 2000 17:03:35 GMT
Assuming that a call is made for /dev/foo ex.(/dev/midi00). Is there any
documentation on what module name will be requested (via request_module) if
any?
dar
------------------------------
From: [EMAIL PROTECTED] (Dave Platt)
Subject: Re: Annotated assembler source from gcc???
Date: Mon, 20 Nov 2000 19:28:13 -0000
In article <[EMAIL PROTECTED]>,
Martin von Loewis <[EMAIL PROTECTED]> wrote:
>GCC has the additional problem that at code emission time, knowledge
>about preprocessor output, let alone *original source code* is long lost.
>
>What is preserved is line information as offered to debuggers. So the
>back-end generator *could* go back and look into the source files, to
>insert the original source code line.
>
>It seems that this feature is too rarely request/too difficult to
>implement so that it is not available in gcc.
I believe that an intersperse feature like this is available in the
Insight debugger-GUI (which itself runs on top of GDB). The short
demo of it I saw, looked pretty neat.
http://sources.redhat.com/insight/ is where the link at FreshMeat took
me...
--
Dave Platt [EMAIL PROTECTED]
Visit the Jade Warrior home page: http://www.radagast.org/jade-warrior/
I do _not_ wish to receive unsolicited commercial email, and I will
boycott any company which has the gall to send me such ads!
------------------------------
From: [EMAIL PROTECTED]
Subject: Modularization of network manipulation software
Date: Mon, 20 Nov 2000 20:23:26 GMT
Hi all,
I have a packet driver program, which uses sockets interface to put a
network card in promiscuous mode, then allows raw packet read/writes.
Since setting the card in promiscuous mode is a priviledged operation, I
am forced to run my application as root. I thought it would be neat to
convert the packet driver code into a loadable kernel module. That
would allow the application ot manipulate the network device via calls
to the packet driver module. However, I am having a lot of compile
problems - lots of variable re-definitions in header files like
<sys/socket.h> etc. Am I making some gross erroneous assumptions here?
Are there some restrictions to what functions can be called from a
kernel source?
Please enlighten me. Also, is there a better way of implementing this
program - i.e. user level application makes calls to a library that does
priviledged operations? I would apprecaite any inputs.
-Vijay
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED]
Subject: How to install file system driver (kernel module)?
Date: Mon, 20 Nov 2000 21:31:48 GMT
I have developed pseudo file system driver and it works when I install
my kernel module using 'insmod'. Of course users don't want to execute
"insmod" every time after system reboot. Thus I need to configure the
system to automatically load my kernel module and mount my pseudo file
systems during system boot process.
Below I describe the steps I performed and the results that were
achieved
1. Copy myfs.o to the directory /lib/modules/<kernel version>/fs/ -
where <kernel version> should be replaced with the version of the kernel
used on your system (`uname -r`).
and change directory to /lib/modules/<kernel version>/fs/
=> OK
2. Execute 'depmod -a' to rebuild dependencies among kernel modules
=> Now I get an error here: myfs.o - Unresolved external symbols
I don't understand why?! (BTW, 'insmod myfs.o' works fine)
3. Edit /etc/conf.modules (I have RedHat 6.0)
=> As far as understand I need to add a few lines to /etc/conf.modules
something like this:
==================
alias mfs myfs
pre-install mfs /sbin/insmod myfs
==================
Am I right?
4. Modify the /etc/fstab file to make use of my file system
=> My file systems are not mounted because kernel module is not loaded
Thanks
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED]
Subject: correction of misprint
Date: Mon, 20 Nov 2000 21:37:56 GMT
surely before depmod I need no change directory to
/lib/modules/<kernel version>/
(not to /lib/modules/<kernel version>/fs/)
it was misprint
Sorry
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Anette Nordvall" <[EMAIL PROTECTED]>
Subject: LINUX Programmers are needed in RTP, NC
Date: Mon, 20 Nov 2000 21:54:24 GMT
I am currently looking for LINUX Programmers for several, different leveled,
opportunities to join this fast-paced development team and work on a new
product in the early design and implementation phases. The Company strives
to lead in the creation, development and manufacture of the industry's most
advanced information technologies, including computer systems, software,
networking systems, storage devices and microelectronics.
I do not know if you are interested or if you know anyone in the area of
expertise. Please think it threw and send me a name and number to network
from. I do appreciate your assistance and I hope to be able to help you in
your career the next time if this is not the one.
Best regards,
Anette Nordvall, Executive IT Recruiter
Please visit our web page for updated job positing!
FPC Raleigh, www.fpcraleigh.com
800-683-1534 x 3010 or 919-848-9929
[EMAIL PROTECTED]
------------------------------
Subject: Re: SMP & interrupts
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: Mon, 20 Nov 2000 23:46:44 GMT
Josef Moellers <[EMAIL PROTECTED]> writes:
> Johan Kullstam wrote:
> >
> > "Slawek Grajewski" <[EMAIL PROTECTED]> writes:
> >
> > > OK. I have one more question. In single CPU system, there can be active only
> > > one instance of interrupt service routine requested with SA_INTERRUPT. How
> > > it is in SMP architecture? Can two interrupts be handled in two CPUs at the
> > > same time?
> >
> > for kernels 2.1.* and up, yes. and if the interrupt is level rather
> > than edge triggered, i think it can even handle two interrupts on the
> > same irq line simultaneously.
>
> Shouldn't this be "edge rather than level triggered"?
i have a hard time keeping it straight too.
euler(jk)$ cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
0: 16187173 15838534 16208083 20129960 IO-APIC-edge timer
1: 17947 18124 17548 17634 IO-APIC-edge keyboard
2: 0 0 0 0 XT-PIC cascade
5: 8636 9030 9150 9312 IO-APIC-edge soundblaster
12: 237682 239358 235772 237410 IO-APIC-level PS/2 Mouse
13: 0 0 0 0 XT-PIC fpu
14: 522394 516774 525725 612600 IO-APIC-level eth1
15: 184738 181417 182980 187196 IO-APIC-level sym53c8xx, sym53c8xx
NMI: 68363627 68363627 68363627 68363627
LOC: 68369581 68369579 68369578 68369578
ERR: 0
sym53c8xx is level triggered. iirc level means that you can do the
top half and clear your device when you come out the level is still
set high if some other device is pending. edge could get lost if
interrupts are off during the top half handler.
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
Don't Fear the Penguin!
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: What distro does Linus Torvalds use?
Date: 20 Nov 2000 23:52:06 GMT
In article <[EMAIL PROTECTED]>,
Michael V. Ferranti <[EMAIL PROTECTED]> wrote:
| And [EMAIL PROTECTED] spoke thusly:
|
| >That's a FAQ :) He uses more than one, as I read in a recent article,
| >so that he can avoid showing favoritism.
|
| Crap. Guess I'll go with Debian then.
Or Slackware. Much more manual distros here, which install what you
want, do what you want, and don't decide you need to upgrade your left
knee before you scratch you butt.
If you like the Windows feel, and many do, buy a subscription to KRUD
from tummy.com. Every month a copy of Redhat with as many patches and
upgrades as are around, plus whatever else fits on the media. Two 700MB
CDs for $5/mo? Can't beat it!
Wish there was a Slackware like that, the upgrading is only so
automatable.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
Make the rules? I don't make the rules. I don't even FOLLOW the rules!
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: Interprocess Communication ...
Date: 20 Nov 2000 23:59:23 GMT
In article <8v4soe$o65$[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
| Hi,
| I am a new bie to Linux and couldnot find answers to the following
| questions. So please respond if you know any of them.
| Does Linux(RedHat 6.1 or 6.2) have the following IPC's :
|
| 1. POSIX Message Queues
| 2. POSIX Shared Memory
| 3. POSIX Semaphores.
| 4. Mutex that can be shared across PROCESSES.
|
| Any help in this direction will be greatly appreciated.
AFAIK only the SvyV versions of these are available. Without a
standard in fromt of me I can't remember how they differ. This question
comes up from time to time, and the only time I looked into it, I had
the impression that the functionality is the same, but the calling
sequences are different.
Don't think there's a mutex as you want it, you might be able to do
something using shared memory.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
Make the rules? I don't make the rules. I don't even FOLLOW the rules!
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: Developing kernel
Date: 21 Nov 2000 00:04:56 GMT
In article <[EMAIL PROTECTED]>,
Peter Larance <[EMAIL PROTECTED]> wrote:
| Hi all
|
| I am student working on a program (module) in Linux to control the
| communication between two computers ( like changing bandwidth and
| generating packet loss and delay ).
|
| Some friends of mine, who has more experience on protocol design,
| adviceing me to passes all received packet from net cards through a
| queue and modify IP and IPchain implementation to feet my application.
|
|
| I will be very be happy if somebody give me some idea, and show me some
| direction to do this work. I have also some question to ask:
|
| 1- what is the good way to this work and where should i start.
| 2- How could i develop this program and put it in kernel without
| damaging or causing the kernel to crash.
|
| 3- Are there any tools in Linux that could already to this work ?
I may be misreading your intent, but I would think that the 2.4 kernel
series with iptables would have the ability to do this by passing each
packet through a user mode filter. That stuff is all in place and seems
to be working, although that may change a bit.
This may be just what you need and vastly easier to do that hacking in
the stack yourself.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
Boy is Al Gore sorry he ever invented the electoral college!
------------------------------
From: James Moe <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Shared Object Libraries (DLLs)
Date: Tue, 21 Nov 2000 01:48:05 GMT
How do I create them? Creating static libraries is really easy;
finding info on Shared Library construction has been a challenge.
--
sma at sohnen-moe dot com
------------------------------
From: Bryan Hackney <[EMAIL PROTECTED]>
Subject: Re: injecting keystrokes into virtual console
Date: Mon, 20 Nov 2000 19:52:33 -0600
[EMAIL PROTECTED] wrote:
>
> On Sun, 19 Nov 2000 02:00:53 -0600 Bryan Hackney <[EMAIL PROTECTED]> wrote:
>
> |> | Another approach would be to modify the inittab, remove all the getty
> |> | programs and write another program to do the same thing they do, except
> |> | also do what you want. That of course only works if your additional input
> |> | is at the beginning.
> |>
> |> Been there, done that.
> |>
>
> | Before this thread wanders off the right hand side, I suggest taking this
> | suggestion seriously, and revisting the custom getty thing. I see know
oops
> | reason to get into the kernel.
> |
> | Say you have a custom getty called mygetty. You run 7 of them out of init.
> | They talk to each other with a shared memory block. One can propagate actions
> | to the others. Exec programs. That kind of stuff. Seems sufficient. Unless
> | I have not understood the real requirement here.
>
> What kinds of actions would one instance of "mygetty" pass to another?
>
> Normally getty exec*()'s the login shell, which inherits the particular
> console device as stdin/stdout/stderr. It sounds like you are suggesting
> that instead, "mygetty" should set up a pty/tty and fork to the shell.
> But I still don't see what the shared memory block can accomplish. Can
> you be more specific?
>
Well, normally getty reads and validates a login, and execs a shell. I can
imagine dozens of alternate actions instead of only going through the login
process. This could all be done and preserve the login door also.
I assume security is not an issue here. Say mygetty execs a shell on a signal X.
killall -SIGX mygetty
Or it could be listening on a FIFO, socket, or communication through shared memory.
> --
> | Phil Howard - KA9WGN | My current websites: linuxhomepage.com, ham.org
> | phil (at) ipal.net +----------------------------------------------------
> | Dallas - Texas - USA | [EMAIL PROTECTED]
--
Bryan Hackney / BHC / [EMAIL PROTECTED]
http://www.FreeClassAds.com/
http://bhconsult.com/
http://bhconsult.com/bh/pgp.key
------------------------------
From: Michael V. Ferranti <[EMAIL PROTECTED]>
Subject: Re: What distro does Linus Torvalds use?
Date: Tue, 21 Nov 2000 02:18:02 +0000
And [EMAIL PROTECTED] (Paul Kimoto) spoke thusly:
>I don't think that's one he's ever been reported to use ...
Oh, shutup. <laughs>
-- Michael V. Ferranti [blades&inreach*com]
Warning: The Surgeon General has deemed that excessive displays of warning
labels and public service announcements produce stress and shortens lives.
------------------------------
From: dream_seeker <[EMAIL PROTECTED]>
Subject: about ARP in linux 2.2.16
Date: Tue, 21 Nov 2000 10:56:34 +0800
Hello,everyone
I'm now reading ARP in the kernel 2.2.16. and I can't find just where
ARP is called,and
don't understand "struct neighbour", "struct neigh_table","struct
dst_entry" in the code .
They seems all has some relations with ARP.
can someone give me some advice,thanks.
best wish
------------------------------
From: "Lee Ho" <[EMAIL PROTECTED]>
Subject: Re: Shared Object Libraries (DLLs)
Date: Tue, 21 Nov 2000 05:41:00 GMT
James Moe Writes:
>
> How do I create them? Creating static libraries is really easy;
>finding info on Shared Library construction has been a challenge.
Creating shared library is easy, too.. :-)
1. compile object file with -fPIC option (position independent code)
2. create shared object file with command
gcc -shared -Wl,-soname,(shared object name) -o (library name)
for instance, if we create libfoo shared object file version 1.0.1
gcc -shared -Wl,-soname,libfoo.so.1 -o libfoo.so.1.0.1 (object files)
3. to install shared library, copy it into /usr/lib and run ldconfig
Regards.
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
Lee, Ho. Software Engineer, Embedded Linux Dep, LinuxOne
Mail : [EMAIL PROTECTED] (work), [EMAIL PROTECTED] (personal)
Homepage : http://flyduck.com, http://linuxkernel.to
------------------------------
From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: Shared Object Libraries (DLLs)
Date: 21 Nov 2000 00:47:24 -0500
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, James Moe wrote:
> How do I create them? Creating static libraries is really easy;
> finding info on Shared Library construction has been a challenge.
See the (Linux) GCC HOWTO, particularly this section:
http://www.linuxdoc.org/HOWTO/GCC-HOWTO/x575.html
--
Paul Kimoto
This message was originally posted on Usenet in plain text. Any images,
hyperlinks, or the like shown here have been added without my consent,
and may be a violation of international copyright law.
------------------------------
From: Leendert Meyer <[EMAIL PROTECTED]>
Subject: Problems with more than one Decision PCCom 8 port Serial card at a time
Date: Tue, 21 Nov 2000 09:02:10 +0200
Hi there,
I just want to know if I am the the only one who struggles to get
more than one PCCom 8 port serial card to work in one machine.
I am using Mandrake 7.2 with kernel 2.2.17-21
According to the kernel hack I had to backstitch into the kernel,
two Decision PCCom 8 port cards can be used at once.
I think the problem lies in the driver/patch since the kernel detects both
cards on the same IRQ and IO address. The IRQ I can understand and agree
with since IRQ sharing is enabled. But surely the IO address can't be the
same.
Anyone out there that can help, please shout.
Thanks in advance.
Leendert.
------------------------------
** 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
******************************