Linux-Development-Sys Digest #393, Volume #6     Thu, 11 Feb 99 07:14:53 EST

Contents:
  Linux begginer's questions (AME)
  Re: Handing a socket to an already running process???  How??? (Sami Tikka)
  Device drivers for Thor-2 from odin Telesys (jh)
  Re: USB support (Aki M Laukkanen)
  su strangeness (Bob Tennent)
  Re: Calling Module Functions (symbols) from Kernel (Andi Kleen)
  Re: What ar non.contiguous inodes ? (Todd Graham Lewis)
  Re: How to detect CPU clock speed? (Peter Samuelson)
  Re: su strangeness ("J�rgen Exner")
  Handing a socket to an already running process???  How??? ("David Sisk")
  Re: About file access pattern. (Martin Maney)
  Re: Why I'm dumping Linux, going back to Windblows (Allan Duncan)
  Re: K6-2 and Linux, Are there any Bug? (Kyle Gonzales)
  RH52 installation problem, please help ("Elf")
  Re: Will 2.2.x support removable medias better? (Sami Tikka)
  Processing Number (daicl)
  Re: Copying RH 5.2 CDs ("Ghost Rider")
  Re: extremely long shutdown time (Kalle Olavi Niemitalo)
  Re: Modest next goal for Linux (David Steuber)
  Re: Shared library programming (Martin Kahlert)
  Re: New free widget library: Notif-0.1 (Steve O'Hara Smith)
  Re: What Am I Missing (Peter Samuelson)

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (AME)
Subject: Linux begginer's questions
Date: 10 Feb 1999 18:14:19 GMT

Greetings all,
I am new to device driver development on Linux.  I have a couple of
conceptual questions which I hope some of you will be able to answer.

What exactly is a port?  Is it a piece of hardware or is it some piece
of software?  What does it do?  How can you make a driver and a device
talk to the same port? Are all i/o ports the same?  direct ansewrs as well
as referal to sources and urls is greatly appreciated.

Thanks
 --
Ayman Elsaedi

------------------------------

From: Sami Tikka <[EMAIL PROTECTED]>
Subject: Re: Handing a socket to an already running process???  How???
Date: 10 Feb 1999 11:45:29 +0200

Take a look at W. R. Stevens: Advanced Unix Programming (or something
like that). It has an example of doing that. It is a good book to have
anyway so your money is not wasted even if you were to buy it only for
this example.
-- 
Sami Tikka, [EMAIL PROTECTED], http://www.iki.fi/sti/

------------------------------

From: [EMAIL PROTECTED] (jh)
Subject: Device drivers for Thor-2 from odin Telesys
Date: Tue, 9 Feb 1999 22:48:23 +0100

Hi!

I am searching for device drivers for the frame relay communication board
Thor-2 from Odin Telesystems Inc, www.odints.com.

Anyone who has one somewhere? Or someone who can give me tips on where to 
look?

regards
[EMAIL PROTECTED]

------------------------------

From: [EMAIL PROTECTED] (Aki M Laukkanen)
Subject: Re: USB support
Date: 10 Feb 1999 19:32:12 GMT

In article <[EMAIL PROTECTED]>, Christian Uhde wrote:
>is there any support for usb interfaces ?

Take a look at:
http://peloncho.fis.ucm.es/~inaky/uusbd-www/

I'm using a USB keyboard here.

-- 
D.

------------------------------

From: r d t@c s.q u e e n s u.c a (Bob Tennent)
Subject: su strangeness
Date: 10 Feb 1999 20:13:54 GMT

On a RedHat 5.1 system, characters appended to the *valid* root 
password are ignored.  Only works for root.  Seems strange.
Is this a security thing?

Bob T.

------------------------------

From: Andi Kleen <[EMAIL PROTECTED]>
Subject: Re: Calling Module Functions (symbols) from Kernel
Date: 10 Feb 1999 21:54:23 +0100

In article <79s5fm$7r8$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
> Hi --
> I am currently working on a network emulation system that requires kernel
> modification of the TCP/IP stack, and interfacing with 2 loadable modules.
> I've looked around on the web and through the module programming guide, and
> found nothing to answer this:

> If I am in ordinary kernel space (i.e., ip_input), how can I jump to or call
> a function that is defined only by a loadable module?  

You have to declare a global function pointer in the kernel and initialize it 
from the module. The kernel then checks it and calls it when it is non NULL. 
In networking a lot of things are already jumped into by vtables, with luck
you can reuse the existing mechanisms. 


-Andi 

-- 
This is like TV. I don't like TV.

------------------------------

From: Todd Graham Lewis <[EMAIL PROTECTED]>
Subject: Re: What ar non.contiguous inodes ?
Date: Wed, 10 Feb 1999 16:57:39 -0500

On Wed, 10 Feb 1999, Konrad Mierendorff wrote:

> some lines of 'e2fsck -v /dev/sda8';
> 
> =>  1180 non-contiguous inodes (3.6%)
> =>       # of inodes with ind/dind/tind blocks 3708/148/0
> 
> My questions are:
> 1. Can anyone explain these lines to me?
> 2. What to do about these inodes, especially if they go > 10%?

I think that this is just an indication of the degree of fragmentation
on your drive.  If a file uses 5 inodes, and #3 and #4 are not next to
each other on the drive, then they are non-contiguous.  At least, that's
my guess.

--
Todd Graham Lewis            32�49'N,83�36'W          (800) 719-4664, x2804
******Linux******         MindSpring Enterprises      [EMAIL PROTECTED]

"A pint of sweat will save a gallon of blood."          -- George S. Patton


------------------------------

From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: How to detect CPU clock speed?
Date: 8 Feb 1999 21:25:16 -0600
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>

[mike burrell <[EMAIL PROTECTED]>]
> it is indeed listed in /proc/cpuinfo (grep "cpu MHZ")...this may have
> changed from kernel version to kernel version

Except that the Z is lowercase....

The field was added recently.  It is not (IIRC) in 2.0.x.  I think it
was added sometime in the last ten 2.1 releases or so.

Note also that different architectures put different things in
/proc/cpuinfo.  We're presumably talking about i386 here.

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

------------------------------

From: "J�rgen Exner" <[EMAIL PROTECTED]>
Subject: Re: su strangeness
Date: Wed, 10 Feb 1999 15:49:00 -0800

r d t@c s.q u e e n s u.c a (Bob Tennent) wrote in message
<79spa2$9a$[EMAIL PROTECTED]>...
>On a RedHat 5.1 system, characters appended to the *valid* root
>password are ignored.  Only works for root.  Seems strange.
>Is this a security thing?


Maybe you discovered, that passwords under Unix are limited to 8 characters,
i.e. only the first 8 characters are significant.
You may use more, but they will simply be ignored.

jue
--
J�rgen Exner; microsoft.com, UID: jurgenex
Sorry for this anti-spam inconvenience





------------------------------

From: "David Sisk" <[EMAIL PROTECTED]>
Subject: Handing a socket to an already running process???  How???
Date: Wed, 10 Feb 1999 19:03:41 -0500


Say you've got a listener/dispatcher type process running (let's say an http
server, just for familiarity's sake), and 10 "work" processes (let's say
these are processes that are already started and already connected to a
database, for instance).

A request (say from a browser, again for familiarity's sake) appears to the
dispatcher process (http listener), it *hands* that request to one of the
already running work processes, and the work process then establishes a
socket connection to the browser.  (This way you avoid the time delay and
overhead of having to start a process, connect to a database, run a query,
then disconnect and die for each browser request, in the normal CGI manner.)
The dispatcher process probably talks to the work processes through pipes or
FIFO's (probably simplest).  The work process spits info back at the browser
rather than the listener process.  I've seen an article somewhere once that
talked about doing something like this with CGI to avoid massive overhead
from starting/connecting/disconnecting/stopping by lots of users.

I've seen code examples to fork a new process and take the socket info with
it.  I'm having difficulty finding any examples that show how to hand-off a
socket connection request from a listener process to an already running work
process.

So:

1)  Does anyone know of a good book that has some understandable
explanations and examples in C to do this?  (My C programming skills aren't
that great, but I'm working on it.)
2)  Are there any examples on the web?
3)  Does Apache do anything similar to this by any chance?  (Or would that
code be too darned difficult to look at for a simple example?)


OR, is my whole approach to this wrong?  (Have a dispatcher process that
hands off the client socket connections to existing work processes by
talking to the work process through a FIFO, etc.) I think this approach
probably makes sense, and I'm sure that somewhere it's already been done,
but I'm just having difficulty figuring it out!  Need some examples and
explanations!

Any suggestions appreciated.  Doubly thankful if you'd be so kind as to
email as well as posting.

Regards,

--
David C. Sisk
The Unofficial ORACLE on NT site
http://www.ipass.net/~davesisk/oont.htm








------------------------------

From: Martin Maney <[EMAIL PROTECTED]>
Subject: Re: About file access pattern.
Date: 11 Feb 1999 00:02:54 GMT

Jun-young Cho <[EMAIL PROTECTED]> wrote:
> I experinced that when I read a file, a specific buffer block is
> referenced frequently.
> Why is it?

That's probably one of the indirect blocks which is how *nix filesystems
recall which disk blocks a file's data is in.

------------------------------

From: [EMAIL PROTECTED] (Allan Duncan)
Crossposted-To: alt.os.linux,comp.os.linux.development.apps
Subject: Re: Why I'm dumping Linux, going back to Windblows
Date: 10 Feb 1999 03:12:02 GMT

In article <795ic7$749$[EMAIL PROTECTED]>,
Martin Maney  <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] wrote:
...
>> I say examples do belong in man pages, since man pages are
>> the first thing one looks at to find how to use a command.
>
>Stop.  Right.  There.
>
>This is both correct and the whole problem with your argument.  Yes, man
>pages ARE the first thing you look at - when you need to refresh your memory
>about some details of a command you don't use often.  The problem is that
>making the man pages serve a quite different purpose, explaining the
>underlying concepts and giving many examples to help one learn how to use
>the command in the first place, will ruin them for their real purpose.

This is coming a little after the event, but I'll put in my bit.

_I_ would like to see examples in man pages - not tutorials, just the
odd succinct command line snippet of a real usage.  Often the dry
syntactical specification makes assumptions about the reader's knowledge
breadth in areas referenced by the command, but not defined in that man
page.  Examples help give understanding of the usage, and help where the
syntax could have been better expressed.


Allan Duncan  [EMAIL PROTECTED]  (+613) 9253 6708, Fax 9253 6776
 Infrastructure - Broadband Networks
 Telstra Research Labs, Box 249 Rosebank MDC
 Clayton, Victoria, 3169, Australia

------------------------------

From: Kyle Gonzales <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux.slackware,comp.os.linux.hardware,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: K6-2 and Linux, Are there any Bug?
Date: Tue, 09 Feb 1999 23:53:35 -0500

Hi all,

    Can a K6-2 work properly in a i430TX chipset motherboard?  I know it can
handle MMX, but does not handle SDRAM or overclocking well (at least in the
earlier version).  That could be the problem...

Any ideas, anyone?

Kyle Gonzales
[EMAIL PROTECTED]

mikec wrote:

> I've got Linux to work with a K6-2 3D (266MHz overclocked at 290) with no
> problems. I would check in your Bios about suspend modes, as according to my
> book you can only use it with a pentium. I don't know if this is your
> problem, but it's what I thought of when I read your message.
> Hilaire Fernandes wrote in message <[EMAIL PROTECTED]>...
> >Javier Pulido wrote:
> >>
> >> ��SOS!!
> >>
> >> Problems with the booting of linux in a computer AMD K6-2 (300 MHz) with
> >> i430TX (no AGP) and 128 MB, two hard drives and 1 CDROM.  Can you help
> me?


------------------------------

From: "Elf" <[EMAIL PROTECTED]>
Subject: RH52 installation problem, please help
Date: Wed, 10 Feb 1999 00:05:31 -0500

greetings,

I'm having problem installing RH52 from DOS partition (either FAT16 or
FAT32) partition, and I'd appreciate some helps.

That I did was to download the entire RH52 FTP directory into a linux
machine, and I made an ISO image with the following command:

mkisofs -c boot.catalog -b images/boot.img -r -v -o /tmp/rh52.iso .

and burned the CD in win98.  Such CD was bootable; and it was mounted to a
linux or Solaris machine, all long file names (with proper capital letter)
are preserved.  However, when I tried to install RH52 from such CD, it hangs
at the installation step after I specified that I'm installing from "CDROM";
the linux hangs as it was having problem finding the CDROM (though it was
booted with it).

So I copied the CD to a FAT32 directory, and proceeded with floppy
installation.  However, no matter what how I specify the
partition/directory, the installation process always returns with an error
message with effect of "the partition/directory does not appear to contain a
Red Hat installation tree".

things I tried so far:
1) copy the CD->{SCSI,IDE} FAT32 HD in win98,
2) copy the CD->{SCSI,IDE} FAT32 HD in dos,
3) copy the CD->{SCSI,IDE} FAT16 HD in win98, and
4) copy the CD->{SCSI,IDE} FAT16 HD in dos,

but I always get the same error message back.

So my questions are:

1) what is the exact way to create a bootable/installable RH52 CD using
mkisofs command?
2) without FTPing the entire RH distribution, how do I install RH52 from HD?

thanx in advance,

Elvis



------------------------------

From: Sami Tikka <[EMAIL PROTECTED]>
Subject: Re: Will 2.2.x support removable medias better?
Date: 09 Feb 1999 20:58:48 +0200


Solaris has something called vold, which mounts a media as soon as it
is inserted into a drive. I'm not sure but I believe it is also
possible to eject the media even when there are processes using the
mounted filesystem. Why cannot we do something similar?

-- 
Sami Tikka, [EMAIL PROTECTED], http://www.iki.fi/sti/

------------------------------

From: [EMAIL PROTECTED] (daicl)
Subject: Processing Number
Date: 11 Feb 1999 02:14:32 GMT


How can I set max processing number under linux ?

Thanks in advanced !!

[EMAIL PROTECTED]


-- 

------------------------------

From: "Ghost Rider" <[EMAIL PROTECTED]>
Subject: Re: Copying RH 5.2 CDs
Date: Thu, 11 Feb 1999 18:00:50 +1300

Don't use Joliet. Use ISO9660... from memory. When burning CDs under
Windows, Windows "assumes" that it will be read by another Windows machine,
and uses Joliet extensions by default.

sabunimjw wrote in message <[EMAIL PROTECTED]>...
> Can some one tell me if there is a trick to copying the RH CDs I have
>made to unsuccessful attempts. 1) CD to CD   2) from the Harddrive
>neither one wants to work
>
>I'm using a Yamaha 4260 with Nero CDrom Burning Software
>
>
>Any help would be appreciated
>
>
>Thanks!
>
>JW
>



------------------------------

From: Kalle Olavi Niemitalo <[EMAIL PROTECTED]>
Subject: Re: extremely long shutdown time
Date: 10 Feb 1999 09:34:35 +0200

I had a similar problem.  The hwclock program hung for minutes
(or at least it felt like minutes).

It turned out something had stopped the real-time clock.  Setting
the time via the BIOS setup cured it.

It would be nice if hwclock detected this automatically, logging
an error message on --hctosys and resetting the chip on
--systohc.


------------------------------

From: David Steuber <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Modest next goal for Linux
Date: 11 Feb 1999 00:05:58 -0500

"Earl Malmrose" <[EMAIL PROTECTED]> writes:

-> David Steuber wrote in message ...
-> >"Earl Malmrose" <[EMAIL PROTECTED]> writes:
-> >
-> >-> I've booted it in 8 megs. I was also able to open up Word, Excel, Paint,
-> and
-> >-> IE 4. I won't say anything about it's speed. :)
-> >
-> >Are you sure that was NT and not the other Windows?  NT locks 12MB of
-> >RAM for the kernel.  Or am I wrong?
-> 
-> Flame me for posting binaries, but here's a gif.
-> 
-> P.S. It was actually running under Virtual PC. None of my real PCs have only
-> 8MB.

Uh, I couldn't decode this thing.  Was it a picture of NT Taskmanager
or something?

I wasn't trying to call you a liar or anything.  It's just that I'm
used to NT locking 12MB of RAM as non-pagable.

What sort of program is Virtual PC?  I am not familiar with it.  Does
it emulate the x86 AT class machine?  Can you use it for reverse
engineering?

-- 
David Steuber
http://www.david-steuber.com
s/trashcan/david/ to reply by mail

When will Altoids be available in 'extra strength'?

------------------------------

From: [EMAIL PROTECTED] (Martin Kahlert)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: Shared library programming
Date: 10 Feb 1999 07:50:46 GMT
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]>,
        XuYifeng <[EMAIL PROTECTED]> writes:
> Hi,
> 
> I am relate new to linux programming. currently I
> want to build a shared library, problem is the library
> need automatic init and finish function like DllMain
> function in WindozeNT which will be invoked at library
> loaded or freed ?
I think i read that if the library contains a function called 
init (perhaps with some underscores in front or at the end, 
it gets called at load time) I hope, someone else knows 
more about this and writes a followup.

Hope that helps,
Martin.

-- 
Your mouse has moved. Windows must be restarted for the change
to take effect. Reboot now?

------------------------------

From: [EMAIL PROTECTED] (Steve O'Hara Smith)
Crossposted-To: 
comp.windows.x,comp.os.linux.advocacy,comp.os.linux.development.apps,comp.os.linux.x
Subject: Re: New free widget library: Notif-0.1
Date: 4 Feb 1999 09:23:01 GMT

Emile van Bergen ([EMAIL PROTECTED]) wrote:
: Steve O'Hara Smith wrote:
    And messed up some attributions - sorry about that.

------------------------------

From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: What Am I Missing
Date: 29 Jan 1999 01:16:32 -0600
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>

[Smitty <[EMAIL PROTECTED]>]
> I have been developing application for DOS and Windows for many years
> now, and have gotten bored with it, so I switched to Linux.

Sounds like a good reason.

> Why isn't there a decent IDE to go with this beautiful Front End !

Depends on how you define "decent IDE".  I've got a perfectly fine IDE
by combining XEmacs, make, gcc, gdb, and (optionally) an X server.

I can't think what more a "real" IDE offers:

 - Specialized text editor: XEmacs in C mode does color syntax
   highlighting, automatic indentation, xref tags, and excellent
   version control support.

 - Integrated compiler: Emacs drives make (which drives gcc) and parses
   gcc error messages well enough to put me on the relevant line of
   code.

 - Integrated debugger: XEmacs in GUD mode drives gdb plenty well
   enough for me.  Perhaps memory watching could be a little more
   obvious.  Some say DDD is good for this but I haven't felt the need
   to try it out yet.

 - Project files: I like Makefiles just fine.  They're not hard to set
   up.  They're also very flexible.

 - Library reference: XEmacs has a pretty context-sensitive `man'
   command.

Anyway, there do exist other programmer's editors out there for Linux,
some of which aspire to be a full IDE.  I haven't tried them.  Look
around.  For me, I find XEmacs much more powerful than anything I have
seen labeled "IDE", not that I've had *that* much experience with
anything but Borland C++ for DOS.

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

------------------------------


** 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
******************************

Reply via email to