Linux-Development-Sys Digest #147, Volume #7      Fri, 3 Sep 99 15:14:15 EDT

Contents:
  Re: Calling a BIOS interrupt (Julien Tayon)
  Re: unlink cputime (James Stevenson)
  Re: GGI vs. framebuffer (Mattias Engdeg�rd)
  Re: Oops-tracer wanted! (Kaz Kylheku)
  Re: PCI card question (zackary)
  DMA- able buffer in scsi driver (Laurent Chavey)
  Re: Disabling control-alt-delete from a program ("Ben Gunter")
  insmod linux driver error -- init_module: Invalid argument. (Rich Gear)
  A novice question to all linux developers ("Tilli Weissenberger")
  Re: TAO: the ultimate OS (Peter da Silva)
  Re: Outlook Express ("Benjamin GOLINVAUX")
  Re: Linux on RS/6000 (Dave Weis)
  Re: Jesus: the ultimate OS ("Pizzi")
  Re: why not C++? (Nix)
  Re: select() and FD_SETSIZE (John Hughes)
  Re: select() and FD_SETSIZE (Graffiti)
  How to configure HP Deskjet 722C for linux? ([EMAIL PROTECTED])
  Call for Papers for OSDI 2000-USENIX Operating Systems Symposium (Moun Chau)
  Re: write() (Nix)

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

From: Julien Tayon <[EMAIL PROTECTED]>
Subject: Re: Calling a BIOS interrupt
Date: Fri, 03 Sep 1999 13:53:59 GMT

I don't have the beginning of the thread so my answer relies on both
what I read from the thread and the subject.
I am also trying to do a bios Call. I don't have the time right now to
do it, but I have read "the Programmer's guide to the EGA VGA, & SVGA
card" by Ferrarro wich detail how to do a vesa BIOS call in protected
mode page 881 (<=> without using the interrupt).
I also suspect the vesa-frame buffer device driver to do two bios call
without calling the int 0x10. (search for the asm keyword)
I am currently working on it. And, would be glad to work with others on
the subject.

Julien Tayon. 
--
Easter-eggs                            Linux System Integrator
17 bis rue du Dr Zamenhof  -  92500 Rueil Malmaison  -  France
Phone: +33 (0) 1 41 29 10 01    -   Fax: +33 (0) 1 41 29 11 71
mailto:[EMAIL PROTECTED]   -   http://www.easter-eggs.com

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

From: [EMAIL PROTECTED] (James Stevenson)
Crossposted-To: comp.os.linux.misc
Subject: Re: unlink cputime
Reply-To: [EMAIL PROTECTED]
Date: Fri, 3 Sep 1999 12:23:22 +0000

Hi

i was working with big files a bit a few days ago
when deleteing it takes some time
but a
rm bigfile &
so it goes into the backgroud
the directory seems to be locked whenever you try a ls
until the file is completely removed :(


On Fri, 03 Sep 1999 04:16:33 GMT, Nicholas Dronen <[EMAIL PROTECTED]> wrote:
>Robin Becker ([EMAIL PROTECTED]) wrote:
>: I asked before, but no one answered. Does unlink cause the ext2 filesys
>: to immediately process the removed inodes/blocks etc. so that removing
>: large files is costly. I find with the latest RH 6.0 that I seem to
>: notice the time taken for rm to remove big files (500Mb). I don't think
>: it was so intrusive under 2.0.37.
>
>All unlink(2) does is deallocate an inode from a filesystem.
>This doesn't necessitate a disk write.  My understanding is that
>the device superblock is read into memory when its filesystem is
>mounted and the freeing of the inode is done there.  At some
>point the superblock is locked and synced to disk, but I don't
>know what criteria the kernel uses for that.
>
>Ultimately the speed of an unlink probably depends on whether the inode
>of the file to be unlinked is in the inode cache.
>
>Kind regards,
>
>Nicholas


-- 
=============================================
Check Out: http://www.users.zetnet.co.uk/james/
E-Mail: [EMAIL PROTECTED]
 12:20pm  up 7 days, 23:04,  2 users,  load average: 2.32, 2.36, 2.27

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

From: [EMAIL PROTECTED] (Mattias Engdeg�rd)
Subject: Re: GGI vs. framebuffer
Date: 3 Sep 99 15:13:23 GMT

Juliusz Chroboczek <[EMAIL PROTECTED]> writes:

>It is important to understand that an application does not need kernel
>support to make use of acceleration; it just needs to be allowed to
>mmap(2) the graphics hardware, which on a single-user machine is a
>reasonable thing to allow.  This is what X does, and, as far as I can
>tell, it works pretty well.

I was under the impression that user-space programs had trouble using
interrupts, which may be needed in some cases. Some video boards can
generate interrupts when an accelerated operation is complete, or on
underflow of the operation queue if there is one. And if you need to do
something synched to the vertical refresh, this needs a kernel driver
as well.

>Perhaps more importantly, if you put the acceleration in the kernel,
>you pay the overhead of a system call on every graphic operation,
>which is not negligible in a game (anyone have figures handy?).

Nobody suggested a system call on every operation. X11 gets around it by
batching requests; there is no reason this approach cannot be used.

I am not convinced that all acceleration can be accessed by using
memory-mapped hardware video memory and registers only. Please enlighten
me if I am wrong.


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

From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Oops-tracer wanted!
Reply-To: [EMAIL PROTECTED]
Date: Fri, 03 Sep 1999 15:37:53 GMT

On Fri, 03 Sep 1999 13:52:48 +0200, Andreas Peetz <[EMAIL PROTECTED]> wrote:
>Thank you for your comments, Kaz,
>I'm pretty sure now that the eepro100-driver has caused the kernel oops.

Yeah; I also just noticed that the offending EIP is over 117000 bytes
past the eepro_init function. In other words, it's way out to lunch somewhere
and not in the driver. Looks like a bad pointer-to-function was dereferenced
or something like that. Or a return address on the stack was trashed.

One thing is certain: the driver machine code not contain the pattern
``8b 03 03 ...''.

> vmlinuz     (the kernel I used)

You should provide the vmlinux, not the compressed image.  After you build the
kernel, there is a vmlinux created in the top level directory.

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

From: zackary <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,redhat.general
Subject: Re: PCI card question
Date: Fri, 03 Sep 1999 16:31:07 GMT



Johan Kullstam wrote:
> zackary  writes:
> 
> > hello guys I would like to know why 
PCI sound card not supported by
> > linux (I'm using linux redhat 6.0). Why only scsi 
slot sound card
> > widely supported as nowdays its hard to find scsi slot sound card 
on
> > sales. I ask the shop which sells pre installed linux in their pc
> > about the 
sound card.  And I would like to know are pci slot vga
> > card supported by linux. 
Pls guide me. I'm quite despair when my PCI
> > sound card undetected by linux. I 
could hear no sound. Thank
> > you.-azaria-
> 
> dude, you posted that in one gigantic 
line.  think about breaking
> lines after 70 or chars.
> 
> you seem a bit confused.  
i don't think there is such a thing as a
> `scsi slot'.  nor have i ever heard of a 
scsi interfaced sound card.
> 
> linux hardware support is limited to (a fairly large 
collection of)
> specific cards.  all video cards will do console (text) mode.  most
> 
video cards have X support.  sound support is sket!
chier.  please post
> your exact equipment.  we need brand, model, model number, 
chipset
> (try reading the manufacturer and numbers on the larger chips on the
> card 
in question).
> 
> -- 
> johan kullstam

sorry not scsi slot... i mean isa slot

==================  Posted via CNET Linux Help  ==================
                    http://www.searchlinux.com

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

From: Laurent Chavey <[EMAIL PROTECTED]>
Subject: DMA- able buffer in scsi driver
Date: Fri, 03 Sep 1999 09:41:05 -0700

This is a multi-part message in MIME format.
==============6AEB846A170ED5C9FA145341
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

1. I am using what appears to be a very old spec
    (Writting a SCSI Driver for Linux, jun 7 1993 )

2. looking at the structure scsi_cmnd,  member
    void *request_buffer.
    can I assume that this buffer is DMA-able (actually bust master
    able)
       - non cache-able or at least has been flush
       - that if it is not a a Scatter Gather chain, it is contiguous
         (in physical address)
       - that if it is a Scatter Gather chain, each link  is contiguous
         (in physical address)
       - that is will not be unlocked (free or swap) until the
         scsi request complete


now if anyone has some more info (url) where I could get some
more recent scsi driver specs for Linux, thank you.



==============6AEB846A170ED5C9FA145341
Content-Type: text/x-vcard; charset=us-ascii;
 name="chavey.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Laurent Chavey
Content-Disposition: attachment;
 filename="chavey.vcf"

begin:vcard 
n:;Laurent Chavey
x-mozilla-html:FALSE
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Laurent Chavey
end:vcard

==============6AEB846A170ED5C9FA145341==


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

From: "Ben Gunter" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: Disabling control-alt-delete from a program
Date: Thu, 2 Sep 1999 17:52:27 -0400

>>> >but sometimes I come to the conclusion that, in the unix world, it is
>>> >considered sane to hack some rather sensitive config file
>>> >programmatically and be happy that it works somehow...
>
>... and he's quite right; application A shouldn't touch application B's
>files, it shows lack of social skills ;-). I'm only glad I don't see to
>much evidence in support of his conclusion (yet)...


For the record, I never suggested writing a program to edit any
configuration files.  I thought he just wanted to disable it once.  And I,
too, misunderstood your point, Olaf.





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

From: Rich Gear <[EMAIL PROTECTED]>
Subject: insmod linux driver error -- init_module: Invalid argument.
Date: Fri, 03 Sep 1999 16:48:24 GMT

I started reading Alessandro Rubini's book called Linux Device Drivers.
I copied and compiled the real basic first program out of the book,
hello.c

I had no problems compiling, but when I tried to install the module
using insmod, I got some interesting errors.  First, the version
information did not match.  Then, after forcing an install w/o checking
for version information using the -f paramter, I still get some module
heder size errors.  Does someone know the source of this error?

Thanks in advance...


Here is the run output:
===========================
[root@sleepy hello]# more hello.c
#define MODULE
#include <linux/module.h>

int init_module(void);
void cleanup_module(void);

int init_module(void)
{
  printk("<1>Hello, world\n");
  return 0;
}

void cleanup_module(void)
{
  printk("<1>Goodbye cruel world!\n");
}

[root@sleepy hello]# gcc -O2 -c hello.c
[root@sleepy hello]# insmod hello.o
bash: insmod: command not found
[root@sleepy hello]# /sbin/insmod hello.o
kernel_version needed, but can't be found
[root@sleepy hello]# /sbin/insmod -f hello.o
init_module: Invalid argument
[root@sleepy hello]# dmesg
init_module: Invalid module header size.
A new version of the modutils is likely needed.
[root@sleepy hello]# /sbin/lsmod
Module:        #pages:  Used by:
[root@sleepy hello]# uname -a
Linux sleepy 2.2.1 #4 Thu Feb 25 11:36:50 GMT 1999 ppc unknown
[root@sleepy hello]# uname -r
2.2.1
[root@sleepy hello]# more /proc/version
Linux version 2.2.1 ([EMAIL PROTECTED]) (gcc version
egcs-2.90.25 980302 (egcs-1.0.2 prerelease)) #4 Thu Feb 25 11:36:50 GMT
1999
[root@sleepy hello]# more /proc/cpuinfo
processor       : 0
cpu             : 604e
clock           : 317MHz
revision        : 49.2
bogomips        : 332.60
zero pages      : total 0 (0Kb) current: 0 (0Kb) hits: 0/1249 (0%)
machine         : PReP Radstone-PPC2a-604e
simms           : 0:0M 1:0M


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: "Tilli Weissenberger" <[EMAIL PROTECTED]>
Subject: A novice question to all linux developers
Date: Fri, 3 Sep 1999 16:55:47 +0200

Hi there,

I have started using linux a couple of month ago. I find it _very_ hard
compiling anything on my RH6 machine because it seems as there is always
some package with common routines missing.

On the other hand there is also no statement in the README file which
packets are needed, where they can be found or at least their name.

Sometimes I am able to guess a package by the error messages. Nonetheless
its pretty frustrating.

Mostly there is also NO SORT OF date- or version number included in the
README files. In addition to that, it seems to be a common practice now to
not write the version number in the archive filename, instead using long
numbers resembling a date of some sort (like isdn4k).

Is there anyone who can tell a novice like me how to understand which
packages I should have installed by default, which ones I can get where or
where there is a common place to find *.o files within packages etc?

Any help on this would be apprechiated - linux might be great - once you get
something to compile successfully on it :)

A big hug to RPM :)

cya, Tilli



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

From: [EMAIL PROTECTED] (Peter da Silva)
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: TAO: the ultimate OS
Date: 3 Sep 1999 14:57:30 GMT

In article <7qodqd$mtv$[EMAIL PROTECTED]>,
Peter T. Breuer <[EMAIL PROTECTED]> wrote:
> The present king of france does not exist.

I guess the monarchy's royalty backup procedures were inadequate. They should
have had an offsite heir in Martinique or something.

-- 
In hoc signo hack, Peter da Silva <[EMAIL PROTECTED]>
 `-_-'   Ar rug t� barr�g ar do mhact�re inniu? 
  'U`    << <KH> you did technical support for Hell ?
            <susan> Didn't we all, in our youth? >:) >>

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

From: "Benjamin GOLINVAUX" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.alpha,comp.os.linux.development.apps
Subject: Re: Outlook Express
Date: Fri, 3 Sep 1999 17:02:36 +0200
Reply-To: "Benjamin GOLINVAUX" <[EMAIL PROTECTED]>

One thing I'd like to add is that he won't be able to transfer his mail
between machines using Outlook Express.

Does Netscape has such a feature ?




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

From: Dave Weis <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.powerpc,comp.unix.aix
Subject: Re: Linux on RS/6000
Date: Fri, 3 Sep 1999 08:27:52 -0500


> 
> >I wanna start an organized Linux development on the RS/6000. Anyone
> >interested?
> 
> I know nothing about the development side of things, but I may soon have some
> older MCA RS/6000s (both PowerPC and Power2?) that I can donate to someone
> serious about coding.

I had started doing a little bit with it on a 7011-250 but my company got
rid of the machine. If you have one like that or another PowerPC machine
(not POWER2) let me know and we'll talk.


dave


-- 
David Weis                | 10520 New York Ave, Des Moines, IA 50322
[EMAIL PROTECTED]      | Voice 515-278-0133 Ext 231

When they took the Fourth Amendment, I was quiet because I didn't deal drugs.
When they took the Sixth Amendment, I was quiet because I was innocent.
When they took the Second Amendment, I was quiet because I didn't own a gun.
Now they've taken the First Amendment and I can't say anything.


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

From: "Pizzi" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.advocacy,comp.os.misc,comp.unix.advocacy
Subject: Re: Jesus: the ultimate OS
Date: Fri, 3 Sep 1999 13:45:10 -0400

>How do we know that he didn't? If we were not given the information
>either way then it must be imaterial and irrelevant.


i never said he didn't. i did say that it wasn't in the Bible that he did.

>What ever happened to "be fruitfull and multiply"? Why was it not "get
>married be fruitfull and multiply".


i don't know.

>Possibly: I was thinking about how any of this might apply to the
>pro-creation of "Linux: The Operating System". Should we apply the same
>constraints. No downloading 'til your properly married. Imagine the
>chaos if we allowed "bastard" Linux's to populate the world. Thank God
>Linus is a proper father, and Linux the well behaved child.

um...
i think it's safe to say that this thread is at it's bitter end.



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

From: Nix <$}xinix{[email protected]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.misc
Subject: Re: why not C++?
Date: 03 Sep 1999 00:49:52 +0100

[EMAIL PROTECTED] writes:

> In article <[EMAIL PROTECTED]>,
> Nix  <$}xinix{[email protected]> wrote:
> >
> >You can't cast arbitrary ints to pointers in a Standard-conforming
> >program, and pointers may have arbitrary internal structure. `Address 0'
> >may be represented by something quite different to all-bits-0, and `0'
> >(the null pointer constant) need not be represented by all-bits-0.
> >
> ...<snip>...
> The subject of this thread is why not C++?  I think it was why not for
> writing an OS.  Could this be the answer?

It could be, only exactly the same is true of C pointers.

-- 
'- I can't believe my room doesn't have Ethernet!  Why wasn't it wired
   when the house was built?
 - The house was built in 1576.' --- Alex Kamilewicz on the Oxford
                                     breed of `conference American'.

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

From: John Hughes <[EMAIL PROTECTED]>
Subject: Re: select() and FD_SETSIZE
Date: 03 Sep 1999 17:56:08 +0200

[EMAIL PROTECTED] (Ton Nijkes) writes:

> On Thu, 02 Sep 1999 05:29:52 GMT, Phil Howard <[EMAIL PROTECTED]> wrote:
> [snip]
> > What I don't like about poll() is that it doesn't make expanding the
> > size of the fd array any easier.  I either have to allocate a giant
> > fd array in anticipation of the maximum number of fds I might use, or
> > dynamically allocate and copy the contents around to change the size.
> 
> What about realloc()?

What part of "dynamically allocate and copy the contents" does realloc 
*NOT* do?

-- 
John Hughes <[EMAIL PROTECTED]>,
        Atlantic Technologies Inc.              Tel: +33-1-4313-3131
        66 rue du Moulin de la Pointe,          Fax: +33-1-4313-3139
        75013 PARIS.

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

From: Graffiti <[EMAIL PROTECTED]>
Subject: Re: select() and FD_SETSIZE
Date: 3 Sep 1999 10:27:28 -0700

In article <tnIz3.1222$[EMAIL PROTECTED]>,
Alan Curry <[EMAIL PROTECTED]> wrote:
>In article <7qlhtd$f9a$[EMAIL PROTECTED]>,
>Peter Samuelson <[EMAIL PROTECTED]> wrote:
>>>     Bell Labs intellectuals                 Berkeley dope-smokers
>>      terminfo, almost O(1)                   termcap, O(N)
>
>You're talking about a few milliseconds in the startup time of programs that
>spend 99.9% of their time sleeping waiting for user input. I'd rather edit
>/etc/termcap than go through the tic/untic/infocmp compilation cycle.

Milliseconds?  I once tossed the giant termcap file that ESR maintains and
put the UFO stuff in there, too, to see what would happen.  Screen took 7
seconds to start on a quiscent system, PII-350.

Lots and lots of milliseconds. :-)

-- DN (Now that I've trimmed the file, it takes under 1s to start.)

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

From: [EMAIL PROTECTED]
Subject: How to configure HP Deskjet 722C for linux?
Date: Fri, 03 Sep 1999 17:46:27 GMT



Hello All,

I have a Compaq Presario Pentium 400MHz and a HP Deskjet Printer(722C).
I am not able to use the printer in the Linux environment. This is the
only single reason I am using windows. Otherwise I would remove the
Windows from my system and I will be using Linux as my default OS.
I tried all types of research to use the printer but I do not know
whether I am missing out anything. I appreciate your help in solving
this problem.

Thanking you,

Arun


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

Crossposted-To: 
comp.arch,comp.object,comp.os.inferno,comp.os.linux.development.apps,comp.os.ms-windows.misc,comp.os.security,comp.protocols.nfs,comp.realtime,comp.security.misc,comp.security.unix
From: [EMAIL PROTECTED] (Moun Chau)
Subject: Call for Papers for OSDI 2000-USENIX Operating Systems Symposium
Date: Thu, 2 Sep 1999 21:39:16 GMT

4TH SYMPOSIUM ON OPERATING SYSTEMS DESIGN & IMPLEMENTATION OSDI 2000
October 23-25, 2000
San Diego, California, USA
http://www.usenix.org/events/osdi2000

===========================================================
CALL FOR PAPERS NOW AVAILABLE
*Paper submissions due:  Tuesday, April 25, 2000
*Notification to authors:  Thursday, June 29, 2000
*Revised papers due for shepherding:  Monday, July 31, 2000
*Camera-ready papers due:  Thursday, August 31, 2000
===========================================================

We would like to invite you to join us in exploring both innovative
research and quantified experience in the systems area.  The OSDI
Symposium takes a broad view of what the systems area and encompasses
contributions from all fields of systems practice, including: operating
systems, networking, distributed systems, parallel systems, mobile
systems, embedded systems, and the influence of hardware developments on
systems and vice-versa.  We particularly encourage contributions
containing highly original ideas.

The goal of the Symposium on Operating Systems Design and Implementation
is to present innovative, exciting work in the systems area.  OSDI
brings together professionals from academic and industrial backgrounds
and has become a premiere forum for discussing the design,
implementation, and implications of systems software.

The symposium will provide a single-track of refereed paper
Presentations and a keynote address.  Work-in-Progress presentations are
planned, and informal Birds-of-a-Feather sessions may be organized by
attendees.

We hope to see you there!
Mike Jones and Frans Kaashoek
OSDI Co-Chairs
=======================================================================
USENIX, the Advanced Computing Systems Association, is the
international, not-for-profit society made up of scientists, engineers,
and system administrators working on the cutting edge of systems and
software. For 25 years USENIX conferences and workshops have emphasized
quality exchange of technical ideas unfettered by stodginess or
commercialism. OSDI 2000 is co-sponsored by IEEE TCOS and ACM SIGOPS.




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

From: Nix <$}xinix{[email protected]>
Subject: Re: write()
Date: 03 Sep 1999 08:00:41 +0100

Dan Mills <[EMAIL PROTECTED]> writes:

> Any time you see a call to schedule() it is possible for the kernel 
> to task switch.

And any time you see wait_on_{foo}().

-- 
'- I can't believe my room doesn't have Ethernet!  Why wasn't it wired
   when the house was built?
 - The house was built in 1576.' --- Alex Kamilewicz on the Oxford
                                     breed of `conference American'.

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


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