Linux-Development-Sys Digest #578, Volume #8     Tue, 20 Mar 01 04:13:15 EST

Contents:
  Re: System function interrupts ("Joseph A. Knapka")
  Re: Kernel Panic!! (Help!!!!) (David)
  Re: copy_to_user() question
  ipx sockets under linux (=?iso-8859-1?Q?J=F6rg?= Rieling)
  Reccomend a good C lib for queue, stack, linklists... (Pjtg0707)
  Re: ipx sockets under linux
  Re: copy_to_user() question (Kevin Buhr)
  Re: Reccomend a good C lib for queue, stack, linklists... (John Kelly)
  File system driver questions. (Dennis Jenkins)
  request_irq RTC ... how does it work? (Eric van der Velde)
  Re: Reccomend a good C lib for queue, stack, linklists... (Philip Armstrong)
  Re: Using bzdisk as a boot disk question. (Jerry Peters)
  Anyone know about Aureal Semiconductor? (Shekhar Patkar)
  Re: Anyone know about Aureal Semiconductor? ("Ethan M. Schwartz")
  Writing a Device Driver (David Findlay)
  Re: TCP implemenation changes ("alberto")
  Re: SegFault (John Kelly)
  can any one suggest the editor for linux,other than vi, which is similar to Editor 
for Windows..... ("v.nagasrinivas")

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

From: "Joseph A. Knapka" <[EMAIL PROTECTED]>
Subject: Re: System function interrupts
Date: Mon, 19 Mar 2001 14:51:08 GMT

Andrzej Stypula wrote:
> 
> "Joseph A. Knapka" wrote:
> >
> > Andrzej Stypula wrote:
> > >
> > > Hi everyone,
> > > I have a little problem in below situation.
> > > lets consider an example code (standard handler for SIGALRM - return):
> > >
> > >   _Time(timelimit);
> > >   err=any_system_function_in_blocking_mode(...);
> > >   _Time(0);
> > >
> > > the 'timelimit' is about 10 - 50 ms.
> > >
> > > the thread or process has slept by scheduler after doing the
> > > _Time() but before any_system... (is possible?)
> > >
> > >  After timelimit proces got SIGALRM, but process which is running now
> > >  has hihgher priority, so my process sleep longer.
> > >  Now, the Q:
> > >  the any_system... returns with EINTR or my process would be sleep
> > >  forever?
> >
> > The next time your process is chosen by the scheduler, the kernel
> > will deliver the SIGALRM. You will definitely not sleep forever
> > - in fact you don't sleep at all. Being evicted from the CPU due
> > to another process being scheduled is -not- the same as sleeping.
> > If another process is scheduled, your process is still in the
> > "runnable" state, not the "sleeping" state.
> 
>    As I well anderstand you, the 'any_system_fuction_in_bloking...'
>    always returns with EINTR error if the timelimit will be too short.
>    So,I have not to use any extra magic code to prevent process (thread)
>    for deadlock.

Yes, correct.

-- Joe Knapka
"It was just a maddened crocodile hidden in a flower bed. It could
 have happened to anyone." -- Pratchett
// Linux MM Documentation in progress:
// http://home.earthlink.net/~jknapka/linux-mm/vmoutline.html
* Evolution is an "unproven theory" in the same sense that gravity is. *

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

From: David <[EMAIL PROTECTED]>
Subject: Re: Kernel Panic!! (Help!!!!)
Date: Mon, 19 Mar 2001 18:31:18 -0000

Thanks to all who answered. I found that when I recompiled the kernel for the 
reiserfs, I did a very "newbie" thing and forgot to load my config file from the past 
compile. Though it was set to recognize ext2 filesystems, there were a few other 
things it WASN'T set to do, hence my problems. A few quick clicks of the mouse and a 
recompile fixed it!

David

David wrote:
> 
> I recently downloaded the 2.2.18 kernel from kernel.org. I compiled it and installed 
>it on my Debian 2.2 (Potato) system. I configured and ran lilo (I'm no newbie at 
>these things). I tried it and it worked well for a few days.
> 
> I have a dual boot (Win98 SE) system and one day I booted Windows to play flight 
>simulator. During the boot, Norton reported that my MBR had been changed and asked if 
>I wanted it (Norton) to repair it. Without thinking, I hit "yes". Probably a dumb 
>thing to do.
> 
> Later, I decided that I wanted to try the reiserfs so I downloaded the patch for me 
>spanking new kernel. Yes, I'm sure I got the right patch. I applied it and 
>recompiled. Reinstalled lilo. Tried to reboot the new kernel. The new image 
>uncompressed and started booting, then I got:
> 
>  VFS: Cannot open root device 03:03
>  Kernel panic: VFS : Unable to mount root fs on 03:03
> 
> So I rebooted with the old kernel (still worked!) and messed around a bit with 
>lilo's settings. Reran lilo. Still no dice. COMPLETELY changed my lilo settings to 
>the point where I would notice the changes at the lilo prompt. Reran lilo. WAIT A 
>MINUTE!! Nothing changed at the lilo prompt as it should have! Something flaky going 
>on here! Reran lilo again. Still no expected changes!
> 
> Decided to install grub. Did so successfully. New kernel now gives me the the same 
>error messages except it substitutes 00:00 for the 03:03's.
> 
> What the heck can I do to get me new kernel to work again? I'm still using ext2 and 
>yes, ext2 is switched on in the kernel (not as a module).
> 
> Help!!
> 
> David
> 
> 
> --
> Posted via CNET Help.com
> http://www.help.com/


--
Posted via CNET Help.com
http://www.help.com/

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

From: [EMAIL PROTECTED] ()
Subject: Re: copy_to_user() question
Date: Mon, 19 Mar 2001 19:04:56 -0000

In article <991fjd$ias$[EMAIL PROTECTED]>,
Jim Fischer <[EMAIL PROTECTED]> wrote:

>> >So what am I missing here?  Tks...
>>
>> Where does the value of "len" get set?

>len's value is set in the validation and range check code, just before the
>for() loop / copy_to_user() call. For the sake of argument, choose len's
>value as 23 bytes (the length of some arbitrary text string (22) plus its
>NUL termination char '\0'). Note that the value that's stored in len is
>exactly the same for both the for() loop version (i.e., the put_user()
>version) and the copy_to_user() version.

For the sake of debugging how about printing the value out just
before the copy_to_user() call.

--
http://www.spinics.net/linux/

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

From: =?iso-8859-1?Q?J=F6rg?= Rieling <[EMAIL PROTECTED]>
Subject: ipx sockets under linux
Date: Mon, 19 Mar 2001 20:06:14 +0100
Reply-To: [EMAIL PROTECTED]

hi all,

  i want to program an ipx socket application under linux (kernel
  2.1.x).  it seems that ipx sockets behave slightly different from
  standard tcp/ip sockets... can anyone tell me how to set up the
  classical server program ('accept'-ing connections) and the classical
  client program ('connect'-ing) ?   a few lines of code or pseudo-code
  would be sufficient.
  (YES, ipx is in my kernel and i have ipx.h in my lib search path).

  thanks in advance!

j�rg.

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

From: [EMAIL PROTECTED] (Pjtg0707)
Subject: Reccomend a good C lib for queue, stack, linklists...
Date: Mon, 19 Mar 2001 19:10:45 -0000
Reply-To: [EMAIL PROTECTED]


... don't feel like writing my own lib right now. 
I am looking for a good C lib for queues, stacks, linklists etc  
. 

So far, I've tried Pingutil from freshmeat, and it has some real 
problems compiling on Linux.



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

From: [EMAIL PROTECTED] ()
Subject: Re: ipx sockets under linux
Date: Mon, 19 Mar 2001 19:18:05 -0000

In article <[EMAIL PROTECTED]>,
J�rg Rieling  <[EMAIL PROTECTED]> wrote:

>  i want to program an ipx socket application under linux (kernel
>  2.1.x).  it seems that ipx sockets behave slightly different from
>  standard tcp/ip sockets... can anyone tell me how to set up the
>  classical server program ('accept'-ing connections) and the classical
>  client program ('connect'-ing) ?   a few lines of code or pseudo-code
>  would be sufficient.
>  (YES, ipx is in my kernel and i have ipx.h in my lib search path).

IPX doesn't have connections.  Think of it as being like UDP.  If you
really want connections like TCP, use SPX.

--
http://www.spinics.net/linux


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

From: [EMAIL PROTECTED] (Kevin Buhr)
Subject: Re: copy_to_user() question
Date: 19 Mar 2001 14:11:09 -0600

"Jim Fischer" <[EMAIL PROTECTED]> writes:
> 
> I'm a newby kernel hacker who's unable to get the copy_to_user() function to
> write data from kernel space to user space.

Actually, it *did* work.  You just checked for the wrong failure
condition.

The "copy_to_user()" function returns the amount of *uncopied* data
remaining when an illegal address is encountered.  That is, it returns
zero if the copy is successful, as it is in your example.

You could replace your "return i;" line with:

        return len - i;  /* return number of bytes copied */

However, it makes more sense to return -EFAULT whenever copy_to_user
fails to copy all the data:

        if (copy_to_user(ubuf, kbuf, len))
                return -EFAULT;

        return len;  /* len bytes successfully copied!  hooray! */

If you grep the kernel for "copy_to_user", you'll see that this second
idiom is the one used almost everywhere.

Kevin <[EMAIL PROTECTED]>

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

From: John Kelly <[EMAIL PROTECTED]>
Subject: Re: Reccomend a good C lib for queue, stack, linklists...
Date: Mon, 19 Mar 2001 13:43:27 -0700

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

Pjtg0707 wrote:

> ... don't feel like writing my own lib right now.
> I am looking for a good C lib for queues, stacks, linklists etc
> .

How about glib from http://www.gtk.org ?  It's already availible on your
system  ( if you're running RedHat, at least ).


==============C0823E63D5BE97AB4B5A0EE6
Content-Type: text/x-vcard; charset=us-ascii;
 name="kellyjf.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John Kelly
Content-Disposition: attachment;
 filename="kellyjf.vcf"

begin:vcard 
n:Kelly;John
tel;work:303-538-4356
x-mozilla-html:FALSE
org:IP Converged Solutions
version:2.1
email;internet:[EMAIL PROTECTED]
title:MTS
adr;quoted-printable:;;1300 W. 120th=0D=0ARoom B1-H45;Westminster;Colorado;80234;USA
x-mozilla-cpt:;-31200
fn:John Kelly
end:vcard

==============C0823E63D5BE97AB4B5A0EE6==


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

From: Dennis Jenkins <[EMAIL PROTECTED]>
Subject: File system driver questions.
Date: Mon, 19 Mar 2001 14:57:22 -0600

       I wish to write a file system driver for the Apple II ProDOS file
system.  I have the full specs on the file system, and I can write
userland tools to copy files in/out of ProDOS disk images.  I'm fairly
good at c/c++/asm.  However, the Linux kernel source code for file
system drivers seems... a bit... dense.  I have no idea how where to
start.  I want to write this thing incrementally, instead of writing it
all at once, only to discover that it does not work.  Where are the
online resources that would help me?

        I have read the source to the ROMFS driver and parts of the HFS
driver.  In my first attempt, I hacked the hell out of the ROMFS
driver.  I could register the prodos filesystem driver, but non of the
operations worked.  Hell, they weren't even implemented, b/c I had no
idea where to start!

        Thanks,


-- 
[EMAIL PROTECTED]                           Universal Savings Bank.

The three most dangerous things are a programmer with a soldering
iron, a manager who codes, and a user who gets ideas.

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

From: Eric van der Velde <[EMAIL PROTECTED]>
Subject: request_irq RTC ... how does it work?
Date: Mon, 19 Mar 2001 22:33:28 +0100

Hello,

I am having trouble to request an IRQ on the RTC. From a device I open 
/dev/rtc (using filp_open) and set the the RTC using ioctl the generate 
interrupts. (set the rate and enable the periodic interrupts)

The call request_irq call fails (-16). When I do a free_irq before the 
request_irq, it works, but then I cannot get an interrupt frequency 
higher than 64 Hz.

Question is how do I receive RTC interrupts within a module?

I think I should use the poll function on /dev/rtc, but how?

Regards Eric.

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

From: [EMAIL PROTECTED] (Philip Armstrong)
Subject: Re: Reccomend a good C lib for queue, stack, linklists...
Date: 19 Mar 2001 20:02:19 -0000

In article <[EMAIL PROTECTED]>,
Pjtg0707 <[EMAIL PROTECTED]> wrote:
>
>... don't feel like writing my own lib right now. 
>I am looking for a good C lib for queues, stacks, linklists etc  
>.
>
>So far, I've tried Pingutil from freshmeat, and it has some real 
>problems compiling on Linux.
>

glib is one such (The base util library used by gtk+). 

Phil


-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt


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

From: Jerry Peters <[EMAIL PROTECTED]>
Subject: Re: Using bzdisk as a boot disk question.
Date: Mon, 19 Mar 2001 22:12:17 GMT

John Kelly <[EMAIL PROTECTED]> wrote:
> ImperatorM wrote:

>> I have made a boot disk with make bzdisk but it won't boot because I need to
>> tell it where root is.  How do I do this?

> rdev /dev/fd0 /dev/hda(root partition)

>> Also, is using a disk made this way
>> a good way to boot regularly?  Everything I read reffers to using bzdisk to
>> test a kernel, I use a LILO disk now so is there really any difference? Thanks

> I use lilo to boot regularly because it's faster, but it's good to have a boot
> disk when you're testing a new kernel, in case you overwrite your only working
> kernel, or forget to run lilo.

> Typically, I make a boot disk just before embarking on those adventures.
> (mkbootdisk on a RH system)


>>
>> -Ted


Even better, copy you new kernel to a different name or directory, add
a section to LILO to describe it, run /sbin/lilo and reboot, selecting
your old or your new kernel.

        Jerry

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

From: Shekhar Patkar <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Anyone know about Aureal Semiconductor?
Date: Mon, 19 Mar 2001 16:29:22 -0800

Hi,

Does anyone know what happened to Aureal Semiconductor? I
have an A3D card in my system, and the driver doesn't work
with kernel 2.4.2. I'm trying to fix it and have some problems,
but when I try to look for their web site, it looks like the
company has disappeared!

Would appreciate any pointers ...
Thanks,
Shekhar

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

From: "Ethan M. Schwartz" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: Anyone know about Aureal Semiconductor?
Date: Mon, 19 Mar 2001 19:32:50 -0500

they went out of business a while ago...

"Shekhar Patkar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi,
>
> Does anyone know what happened to Aureal Semiconductor? I
> have an A3D card in my system, and the driver doesn't work
> with kernel 2.4.2. I'm trying to fix it and have some problems,
> but when I try to look for their web site, it looks like the
> company has disappeared!
>
> Would appreciate any pointers ...
> Thanks,
> Shekhar



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

From: David Findlay <[EMAIL PROTECTED]>
Subject: Writing a Device Driver
Reply-To: [EMAIL PROTECTED]
Date: Tue, 20 Mar 2001 12:47:21 +1000

I have email conexant telling them that I would like to write a Linux 
driver for the conexant HCF(controllerless) chipset for modems. I told them 
I would be writing it under the gnu public license for hopeful inclusion in 
the Linux kernel, and asked for a device driver kit to be emailed to me. 
What do you reckon my chances of getting the information I need are? Thanks,

David

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

From: "alberto" <[EMAIL PROTECTED]>
Subject: Re: TCP implemenation changes
Date: Tue, 20 Mar 2001 04:06:17 +0100


"Lionel" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]...
> Hi,
>
> I'm planning to make some changes to my TCP implementation, but I don't
> know what is the best kernel version to start with.
> I have 2.2.18 and 2.4.
>
> Where they some major changes in the TCP implementation between these
> two versions ? Is the TCP implementation of 2.4. stable enough to be a
> good place to start, or better start with 2.2.18 implementation ???
>
> I know that I can download both and make a diff between the TCP source
> files but this won't probably give me a real answer to my question.
>
> Thanks in advance for help.
>
> Lionel
>

maybe you will find more docs about 2.2.18
bye



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

From: John Kelly <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: SegFault
Date: Mon, 19 Mar 2001 21:09:02 -0700

Can you compile with a -g flag, and run it in from gdb?

-jk

Unknown wrote:

> In article <[EMAIL PROTECTED]>, "Kasper Dupont"
> <[EMAIL PROTECTED]> wrote:
>
> > Unknown wrote:
> >>
> >> After compiling bladeenc (mp3 encoding), i always got Segmentation
> >> fault. It's a debian sid dist, with a DURON on a asus motherboard it's
> >> perhaps a floating point error ! Could anyone help?
> >
> > Is it the compiler or the produced executable that fails? Do you get a
> > core dump?
> >
> it's the produced binary that fails, i've tried also with notlame source
> and it fails also. no i dont'get any core file generated.
> does it came from the hardware ?
> the system is ok ( xfree 4.0.2, kernel 2.4.2 etc....)


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

From: [EMAIL PROTECTED] ("v.nagasrinivas")
Subject: can any one suggest the editor for linux,other than vi, which is similar to 
Editor for Windows.....
Date: Tue, 20 Mar 2001 09:02:17 +0000 (UTC)

This is a multi-part message in MIME format.

=======_NextPart_000_0013_01C0B14B.28418520
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi ,
=20
        Can any body suggest the editor for linux, which is similar to =
Editor for windows..(www.gensoft.com).
Because through the code reading ( means searching through several files =
at a time and other things are very easy..)

thanks in advance,
srinivas.


v.naga srinivas
YVL Software Consultancy
B4,Q1,6th floor,Hi-Tec city,
CyberTowers, Madhapur,
Hyderabad - 500033
Andhra Pradesh
INDIA
phone : 091-040-3110200(off)
             091-040-3810616(res)
visit me: www.geocities.com/cheluvi

=======_NextPart_000_0013_01C0B14B.28418520
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hi ,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Can any=20
body suggest the editor for linux, which is similar to Editor for =
windows..(<A=20
href=3D"http://www.gensoft.com">www.gensoft.com</A>).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Because through the code reading ( =
means searching=20
through several files at a time and other things are very =
easy..)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks in advance,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>srinivas.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>v.naga srinivas<BR>YVL Software=20
Consultancy<BR>B4,Q1,6th floor,Hi-Tec city,<BR>CyberTowers,=20
Madhapur,<BR>Hyderabad - 500033<BR>Andhra Pradesh<BR>INDIA<BR>phone :=20
091-040-3110200(off)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
091-040-3810616(res)<BR>visit me: <A=20
href=3D"http://www.geocities.com/cheluvi">www.geocities.com/cheluvi</A></=
FONT></DIV></BODY></HTML>

=======_NextPart_000_0013_01C0B14B.28418520==



-- 
Posted from ns.stph.net [196.12.32.2] 
via Mailgate.ORG Server - http://www.Mailgate.ORG

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


** 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 by posting to the
comp.os.linux.development.system newsgroup.

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