Linux-Development-Sys Digest #937, Volume #7 Wed, 7 Jun 00 02:13:10 EDT
Contents:
Re: (syscall vs reading /dev) Re: Question on /dev/cpu/* in Linux 2.4.0 and /proc
(Michel Talon)
Re: Opening in a file in Kernel Mode??? (Steve Goodwin)
books on linux programming (Thomas Berkefeld)
Pthreads and processors (Thomas Lefort)
Re: SPARC Linux Serial Port (Pete Zaitcev)
Re: Pthreads and processors (Mikko Rauhala)
[ext2fs] what are fragments ? (Manu)
Re: books on linux programming (Christian Plattner)
GUI Button to Enable/Disable Mic ([EMAIL PROTECTED])
Re: Binary file formats. ("Norman Black")
Process Control (M Dipperstein)
Re: [ext2fs] what are fragments ? (Juergen Heinzl)
Re: HELP: Linux Net Driver confusions (Tom Roberts)
finding filename from file descriptor ([EMAIL PROTECTED])
Re: finding filename from file descriptor (Alexander Viro)
Re: finding filename from file descriptor (John Reiser)
Re: finding filename from file descriptor (Alexander Viro)
Apache SSI config question ("Eddy")
Re: Debuger (David Highley)
RedHat 6.2 Autofs Broken (David Highley)
PCI utils question... (Paul D. Smith)
----------------------------------------------------------------------------
From: Michel Talon <[EMAIL PROTECTED]>
Subject: Re: (syscall vs reading /dev) Re: Question on /dev/cpu/* in Linux 2.4.0 and
/proc
Date: Tue, 6 Jun 2000 18:08:54 +0200
Basile STARYNKEVITCH <[EMAIL PROTECTED]> wrote:
> My opinion is that, since Linux is now the dominant Unix
> implementation (in terms of number of systems), it should be able to
> enhance Posix and unix standards by adding new system calls (or
> functionalities). I believe that since Linux is now an important OS,
> any good new Linux system call will gradually be added to other
> (commercial) Unices and/or to future Posix standards. I understand the
> initial position of Linux kernel authors (stick to Posix standard),
> but now that Linux is mainstream it could change (since Linux
> evolution has a real influence of Unix today)
This is the typical Microsoft attitude, embrace and extend. Hope that
people will not follow this ugly advice. There are enough problems with
Linuxisms like parsing /proc. Not everybody uses Linux, and people are happy
to have programs portable to other Unices, commercial or *BSD.
--
Michel Talon
------------------------------
From: Steve Goodwin <[EMAIL PROTECTED]>
Subject: Re: Opening in a file in Kernel Mode???
Date: Tue, 6 Jun 2000 17:29:43 +0100
In article <8hj2kc$1ug$[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes
>[EMAIL PROTECTED] wrote:
[snip]
>Funnily enough we also are using the PLX9080 and are currently running
>into problems with DMA interrupts. Have you got through that bit yet? :-
There was a thread a few days ago,
REQ : PLX9080 driver source code
that had some info in it on DMA int's
HTH
--
Steve Goodwin... De-spamming active, remove any _DSPM from address
------------------------------
From: [EMAIL PROTECTED] (Thomas Berkefeld)
Subject: books on linux programming
Date: Tue, 06 Jun 2000 18:08:00 +0200
Hi,
I am looking for good books on linux - programming (especially I/O and
system-related stuff, system calls etc.)
Any suggestions?
------------------------------
From: Thomas Lefort <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Pthreads and processors
Date: Tue, 06 Jun 2000 18:39:39 +0200
How far can I control the mapping of pthreads to processors ? In fact I
would like to have few threads in order to reduce the commutation
overhead, but numerous enough to use the hardware parallelism.
Thanks for your help
TL
------------------------------
From: [EMAIL PROTECTED] (Pete Zaitcev)
Subject: Re: SPARC Linux Serial Port
Date: Tue, 06 Jun 2000 17:04:23 GMT
> I looking for information regarding the sparc serial port
> Zilog8530. A professor wishes to develop write a device driver which
> interfaces with the Zilog8530 hardware. Only concern here is that he
> has linux source which compiles on a PC. If you have the base
> address, interrupt, (obtained from dmesg) can you use the header
> definitions for offsets to all the control registers regardless to the
> specific uart used?
>
> --
> | Jason Naughton, B. Eng, M.E. Sc., P.Eng | email: [EMAIL PROTECTED] |
> | Lead Engineer, | Office: (416)-979-5000 x7168 |
> | Department of Electrical Engineering, | FAX: (416)-979-5280 |
> | Ryerson Polytechnic University | Home: (905)-839-8161 |
Jason, I am sorry but I do not understand what is your problem.
It is evident that you want to program a Zilog 8530 serial
found on ancient SPARCs. But your last sentence makes absolultely
no sense ("regardless to the specific uart used").
Try to read the file /usr/src/linux/drivers/sbus/char/zs.c.
If that does not solve your problem, post specific questions.
Greetings,
--Pete
------------------------------
From: [EMAIL PROTECTED] (Mikko Rauhala)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Pthreads and processors
Date: 6 Jun 2000 17:11:58 GMT
Reply-To: [EMAIL PROTECTED]
On Tue, 06 Jun 2000 18:39:39 +0200, Thomas Lefort <[EMAIL PROTECTED]>
wrote:
>How far can I control the mapping of pthreads to processors ? In fact I
>would like to have few threads in order to reduce the commutation
>overhead, but numerous enough to use the hardware parallelism.
Basically, you can't. The kernel runs the threads on whatever processors it
sees fit at the moment. Most of the time this just means that you don't
have to worry about it, just launch your threads to do the work and they
automagically get distributed.
There are some patches around to control process (and thus thread)
mapping to different processors in an SMP environment, if you really
need it. I believe a pointer to these was in the SMP-HOWTO.
Followups to .system only...
--
Mikko Rauhala - [EMAIL PROTECTED] - http://www.iki.fi/mjr/
------------------------------
From: Manu <[EMAIL PROTECTED]>
Subject: [ext2fs] what are fragments ?
Date: Tue, 06 Jun 2000 18:08:37 GMT
What are fragments in the ext2fs ?
I understand what are groups, but there is an equal number of
fragments and blocks per group (on my system).
-Manu
,, // \\ email [EMAIL PROTECTED]
(_,\/ \_/ \ ICQ# 32562118
\ \_/_\_/>
/_/ /_/ http://coredump.free.fr
------------------------------
From: Christian Plattner <[EMAIL PROTECTED]>
Subject: Re: books on linux programming
Date: Tue, 06 Jun 2000 22:17:06 +0200
Thomas Berkefeld schrieb:
>
> Hi,
>
> I am looking for good books on linux - programming (especially I/O and
> system-related stuff, system calls etc.)
>
> Any suggestions?
I see you are from germany - Try this:
"Linux Kernelprogrammierung - Algorithmen und Strukturen
der Version 2.2" (5.Auflage, Addison-Wesley Verlag)
It should give you an overview - don't expect to see all details :)
- Christian
--
- Christian Plattner
=================================
e-mail address: [EMAIL PROTECTED]
Ignore the dashes, these are just a junk mail protection.
------------------------------
From: [EMAIL PROTECTED]
Subject: GUI Button to Enable/Disable Mic
Date: Tue, 06 Jun 2000 18:56:23 GMT
Is anyone familiar with the SBLive drivers or an API I can use to
toggle the microphone on and off on the fly without re-initializing the
card.
Trying to create a button to toggle mic so the mic isn't hot at all
times. An easy fix would be to get a mic with an on/off switch but I
need something a little better than that.
Eric
[EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Norman Black" <[EMAIL PROTECTED]>
Subject: Re: Binary file formats.
Date: Tue, 6 Jun 2000 12:51:32 -0700
Reply-To: "Norman Black" <[EMAIL PROTECTED]>
You can get the Elf format (SystemV ABI) from www.Intel.com or
www.sco.com/developer/devspecs/
The Intel TIS Elf document is version 1.2, some 1.1 docs are out there and
1.2 is better. You can search Intel for TIS and Elf.
The SCO documents come in general and processor specific documents. The
document from the Intel site combines the general, and 386 processor
supplement information without some of the ABI info unrelated to Elf.
You will need to look at the binutils source code for some things like the
.gnu.version sections. I just went over that stuff this morning. Sun
invented these for Solaris and GNU adopted them for the Gnu system, which
consists of all but the kernel in "Linux".
Regarding a.out I have no idea other than checking the man pages, and/or the
binutils source (specifically bfd).
BTW: What is your interest in low level file format info. I am porting our
compiler, linker, librarian, etc to Linux. I must say that I am finding
doing the Elf linker a royal pain in the ass compared to the Win32 PE/COFF
format.
--
Norman Black
Stony Brook Software
the reply, fubar => ix.netcom
<[EMAIL PROTECTED]> wrote in message
news:8hidpn$qth$[EMAIL PROTECTED]...
> Greeting:
>
> I need the detail documents about the format
> of a.outobject file, a.out executable file, ELF
> files. Does anyone know the location of them?
>
> Thanks a lot.
>
>
> Allen
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
From: M Dipperstein <[EMAIL PROTECTED]>
Subject: Process Control
Date: Tue, 6 Jun 2000 13:08:00 -0700
I have program which creates several processes using the clone command.
However, it is not necessary that every process run all of the time. I
would like to allow some processes to be idle until one of the other
processes recognizes an event which requires one of the idle processes to
do something.
Does Linux provide a means for one process to suspend and resume another
process?
-Mike
------------------------------
From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: [ext2fs] what are fragments ?
Date: Tue, 06 Jun 2000 20:23:47 GMT
In article <[EMAIL PROTECTED]>, Manu wrote:
>
>What are fragments in the ext2fs ?
>I understand what are groups, but there is an equal number of
>fragments and blocks per group (on my system).
[...]
Correct me - not yet used by ext2fs and comes from BSD. Instead
of using one block per file the FS can use fragments to decrease
the waste of space.
E.g. a blocksize of 4096 or 8192 bytes might be optimal for a
given usage, but for sure not all files require a full block and
so fragments can be used to store them or the rest of a file.
Just assume there is one of size 8195.
Somewhat typical is a combination of 8192 / 1024 and many Unices
support them. You might do a WWW search as esp. documentation about
the BSD ufs ought to come up with something.
Cheers,
Juergen
--
\ Real name : J�rgen Heinzl \ no flames /
\ EMail Private : [EMAIL PROTECTED] \ send money instead /
------------------------------
From: Tom Roberts <[EMAIL PROTECTED]>
Subject: Re: HELP: Linux Net Driver confusions
Date: Tue, 06 Jun 2000 16:28:24 -0500
Tom Roberts wrote:
> I am trying to write a network driver [...]
> In particular, I am trying to use non-ethernet headers, and cannot
> get the kernel to deliver a ping packet (ICMP protocol) back to the
> ping program even though the driver delivers the packets OK. BUT --
> essentially the same driver does seem to work on PowerPC linux....
Thanks to Jonathan Brauer, I got it to work.
Remarkably, the value in skb->protocol is in network byte order,
not the natural byte order of the current CPU. So changing:
skb->protocol = ETH_P_IP;
to:
skb->protocol = htons(ETH_P_IP);
made it work.
Note that the PowerPC byte order is the same as network order,
which is why it worked on the PowerPC but not the i586.
[sent to both c.o.l.dev.sys and linuxppc-embedded
because I queried both.]
Tom Roberts [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED]
Subject: finding filename from file descriptor
Date: Tue, 06 Jun 2000 22:23:22 GMT
Hi,
I am trying to develop a shared library which
has an api that takes a
file descriptor. how can I find the full filename
of the file descriptor
received as an input to this api.
regards
jeseem
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: finding filename from file descriptor
Date: 6 Jun 2000 18:45:36 -0400
In article <8hjtks$9t1$[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
>Hi,
> I am trying to develop a shared library which
>has an api that takes a
>file descriptor. how can I find the full filename
>of the file descriptor
>received as an input to this api.
There is no such thing. Files are nameless - at any moment there may be
many names for the same file, there may be one and there may be none.
In other words, the question is meaningless. The best you can do is to
scan the whole tree and even that may give no results: file may be
unlinked and if your library can't handle that - too bad. Please, read the
UNIX FAQ - it's not Linux-specific, on any UNIX situation is the same.
--
There *is* something on port 23 but it ain't TELNET.
Zack Weinberg in Scary Devil Monastery.
------------------------------
From: John Reiser <[EMAIL PROTECTED]>
Subject: Re: finding filename from file descriptor
Date: Tue, 06 Jun 2000 16:45:46 -0700
When the /proc filesystem is installed, then each open file descriptor
has a symbolic link named /proc/self/fd/j where 'j' is the decimal
representation of the file descriptor number; and this is also accessible
as /proc/pid/fd/j where 'pid' is the decimal representation of the
processs ID number. In some common cases, this knowledge can be exploited
to provide what many people want, but probably not with the speed that
some might expect. See the utility 'lsof' ("ls open files").
--
John Reiser, [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: finding filename from file descriptor
Date: 6 Jun 2000 19:58:22 -0400
In article <[EMAIL PROTECTED]>,
John Reiser <[EMAIL PROTECTED]> wrote:
>When the /proc filesystem is installed, then each open file descriptor
>has a symbolic link named /proc/self/fd/j where 'j' is the decimal
>representation of the file descriptor number; and this is also accessible
>as /proc/pid/fd/j where 'pid' is the decimal representation of the
>processs ID number. In some common cases, this knowledge can be exploited
>to provide what many people want, but probably not with the speed that
>some might expect. See the utility 'lsof' ("ls open files").
That still does not address the issue with unlinked files. Try and you will
see. Open a file, unlink it and look into proc/<pid>/fd. Think a bit and you'll
see why it is so.
Again, "name of the opened file" is a nonsense on UNIX. Why do you need it,
BTW?
--
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid. Get yourself a better computer" - Dilbert.
------------------------------
From: "Eddy" <[EMAIL PROTECTED]>
Subject: Apache SSI config question
Date: Fri, 2 Jun 2000 21:30:22 +0800
>From the Apache website, it says that to setup Server Side Include in
Apache, the following things is needed.
1) In the <Directory \>, add "Options +Include"
2) mod_include is needed
3) Add "AddHandler server-parsed .shtml "
But After I set it, it can't run SSI, is there any wrong with me ?
Thanks
Eddy
------------------------------
From: David Highley <[EMAIL PROTECTED]>
Subject: Re: Debuger
Date: Tue, 06 Jun 2000 18:51:31 -0700
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Zirong Wang wrote:
<blockquote TYPE=CITE>Jun Chen wrote:
<p>> Did any one can tell me a handy debuger under linux
red-hat?
<br>> Thanks
<br>>
<p>gdb,
<br>xxgdb
<p>---------------------------------------------------------------------
<br>Zirong Wang Oce Industries 1, Rue J. Lemoine
94015 Creteil France</blockquote>
DDD is a good debuger <a href="http://www.cs.tu-bs.de/softech/ddd/">DDD
- The Data Display Debugger</a>
<pre>--
Regards,
David Highley
Highley Recommended, Inc.
2927 SW 339th Street
Federal Way, WA 98023-7732
Phone: (206) 669-0081
FAX: (253) 838-8509
Email: [EMAIL PROTECTED]
WEB: <A
HREF="http://www.highley-recommended.com">http://www.highley-recommended.com</A></pre>
</html>
------------------------------
From: David Highley <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.portable
Subject: RedHat 6.2 Autofs Broken
Date: Tue, 06 Jun 2000 20:10:28 -0700
Has anyone come up with a fix for the broken autofs in RedHat 6.2. In
/var/log/messages:
automount: can not open lookup module auto.home
(/usr/lib/autofs//lookup_auto.home.so: can not open shared object file:
No such file or directory)
Message is correct, file is not there. I did a ln -s to
/usr/lib/autofs/lookup_userhome.so. But when I try and list the home
directory a symbolic link gets created to its self, /home/dhighley ->
/home/dhighley. I see that the path in the log file has a doubled / in
it also.
There were no fixes posted on the RedHat site.
--
Regards,
David Highley
Highley Recommended, Inc.
2927 SW 339th Street
Federal Way, WA 98023-7732
Phone: (206) 669-0081
FAX: (253) 838-8509
Email: [EMAIL PROTECTED]
WEB: http://www.highley-recommended.com
------------------------------
From: [EMAIL PROTECTED] (Paul D. Smith)
Subject: PCI utils question...
Date: 07 Jun 2000 01:36:08 -0400
Reply-To: [EMAIL PROTECTED]
I have a Symphony PCI wireless network card, and I noticed that its IRQ
was being shared with my soundcard:
# cat /proc/interrupts
CPU0
0: 1613659 XT-PIC timer
1: 34093 XT-PIC keyboard
2: 0 XT-PIC cascade
5: 46372 XT-PIC EMU10K1, eth0
12: 79701 XT-PIC PS/2 Mouse
13: 1 XT-PIC fpu
14: 488215 XT-PIC ide0
15: 6 XT-PIC ide1
NMI: 0
Now, I know PCI cards are supposed to be able to share IRQs but I have
so many free IRQs I thought I'd try to convince the Symphony to use a
different one.
I have another Linux system with a Symphony, and that card chose IRQ
10. I didn't make any changes or set either of them in either way.
So, I tried to run setpci ... interrupt_line=0b. When I use setpci
... interrupt_line to vie the value, it looks correct:
# setpci -v -s 00:0a.0 interrupt_line
00:0a.0:3c = 0b
But, both /proc/interrupts and lspci -v both still report the IRQ as
being 5:
# lspci -v
00:0a.0 Network controller: PROXIM Inc Symphony 4110 (rev 02)
Subsystem: PROXIM Inc: Unknown device 0001
Flags: medium devsel, IRQ 5
Memory at e7000000 (32-bit, non-prefetchable)
I/O ports at 6800
I/O ports at 6c00
Then Inoticed the -b option to lspci, to get the bus/card value, instead
of what the kernel thinks; if I use that, then I see the IRQ is 11!
I'm confused by this differce; can anyone comment on it?
--
===============================================================================
Paul D. Smith <[EMAIL PROTECTED]> Network Management Development
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
===============================================================================
These are my opinions---Nortel Networks takes no responsibility for them.
------------------------------
** 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
******************************