Linux-Development-Sys Digest #769, Volume #7 Fri, 14 Apr 00 09:13:13 EDT
Contents:
Re: system call pre-emptable ??? (Badrinath Venkatachari)
Disk Idle time ?? (Badrinath Venkatachari)
Re: boot disk (Mark McDougall)
Bluetooth stack ("Chandler")
Video Card Driver Resources ("Poynter, T.")
install (customer)
Re: To core or not to core - You tell me (Erik Max Francis)
Re: Random system hangs on Compaq P166/2.2.14 (Bill Hayles)
Re: is linux 2.3 available? ("D. Stimits")
Re: Idea !!! ([EMAIL PROTECTED])
Re: Modules versions and insmod -f (Mark McDougall)
Re: porting WIN32 to UNIX (Linux) (Charles Blackburn)
Thanks, but that doesn't help me... ("David Ellsworth")
Re: Cheap/Free alternatives to Hummingbird eXceed (Stefaan A Eeckels)
Re: device driver development (Mei)
Re: Characterizing the memory usage of a process (Wolfram Gloger)
Re: Win32 Drivers running under Linux (Alan Donovan)
Re: device driver development and C++ ("Dmitry A. Fedorov")
Re: catching signals for bad stack (Henning)
Re: Getting IP address of self in C? (Nick Andrew)
2.3.99-pre? and /boot (Mike Dowling)
Drivers for newer HP printers? (Paul McGaughey)
Re: device driver development (Jerome Corre)
----------------------------------------------------------------------------
From: Badrinath Venkatachari <[EMAIL PROTECTED]>
Subject: Re: system call pre-emptable ???
Date: Thu, 13 Apr 2000 21:30:35 -0700
Hi,
Thanks for the response. I have this mechanism where I Q up requests when they
come in. I have a timer driven function dQ them at regular intervals, issue the
requests dQed and wake up the processes waiting for the request servicing.
Currently, I have this timer getting woken up at millisecond precision
(basically using jiffies with add_timer()). I would however, like to use a
higher resolution timer for this purpose (microseconds). Is there one available
???
thanks a lot in advance
regards
badri
"V.Vijay Kumar" wrote:
> >===== Original Message From Badrinath Venkatachari <[EMAIL PROTECTED]> =====
> >Hi,
> > If I blocked the immediate processing of a read() request in the
> >kernel, (by say Qing the request, waiting for sometime and then issuing
> >the request after sometime, while the process (in the kernel) that
> >issued the request waited on a wait_queue, would it be possible to
> >receive requests from other processes ??
> >
> > In other words, can other read() system calls result in a context
> >switch while I am yet to issue the pending request ??? I want to be able
> >to Q requests from multiple processes before servicing them. (assume
> >that the mechanism to make the requesting process (in the kernel) wait
> >on a wait_queue has been established and it can be woken up properly).
> >
> >thanks a lot in advance
> >badri
> >
>
> No problem, you can do that. We are doing a similar thing in our write
> request
> in our driver. We have made a wait_queue for our device. When we find that
> the
> write buffer for the device is full, we make the processes wait in the wait
> queue. Then when the interrupt comes, it dumps the write buffer onto the
> device and wakes up the waiting processes.
>
> For more info refer to Linux device drivers by Rubini.
>
> Vijay.
------------------------------
From: Badrinath Venkatachari <[EMAIL PROTECTED]>
Subject: Disk Idle time ??
Date: Thu, 13 Apr 2000 21:36:48 -0700
Hi,
I would like to know if there is a known way to find out the idle time
of the disk inside the kernel during a given period. If there isn't,
any suggestions on what would be a good place to say note the time
before issuing a request, note the time when the request is received and
accumulating the differences to find out how long the disk has been
active ??
thanks in advance
regards
badri
------------------------------
From: Mark McDougall <[EMAIL PROTECTED]>
Subject: Re: boot disk
Date: Fri, 14 Apr 2000 11:58:16 +1000
customer wrote:
> I am trying to install redhat 6.1, but the boot disk I created
> boots, and starts and shows me the main menu. Once I select an option,
> it starts to load and once it gets to the second file I get an error.
> Does anyone know how I could get around this? Or what I could possibly
> be doing wrong.
How can you possibly expect *anyone* to help with this kind of
description???
You get "an error"!?! That's as useful as...
"I wrote a C program and when I compile I get an error.
Can anyone please tell me what I'm doing wrong?"
I'm sure there's plenty of people willing to help you but you need to
give a bit more information than this!
Regards,
--
| Mark McDougall |
| Engineer |
| Virtual Logic Pty Ltd |
| http://www.vl.com.au |
------------------------------
Date: Fri, 14 Apr 2000 10:07:41 +0800
From: "Chandler" <[EMAIL PROTECTED]>
Subject: Bluetooth stack
Hi.
I'm a beginner with bluetooth and I'm very interested in developing the
bluetooth protocol stack. I would like to look for more details regarding
the stack(preferably a newsgroup or discussion forum). Any advice? Thanks a
million!!
Chandler
------------------------------
From: "Poynter, T." <[EMAIL PROTECTED]>
Subject: Video Card Driver Resources
Date: Thu, 13 Apr 2000 21:46:39 -0500
Hi, I'm looking for some good articles, books, or even source code covering
video drivers. I know this is more of a "do and learn" type thing, but if
you know of any good books or anything please let me know.
Thanks,
TP
------------------------------
From: customer <[EMAIL PROTECTED]>
Subject: install
Date: Fri, 14 Apr 2000 03:50:05 GMT
I am trying to install redhat 6.1 version b from a cd. I boot up the
computer and when I choose general mode at the menu linux reads my
devices. After this though the screen shows a bunch og white lines and
then it goes all white and stops. Has this happened to anyone else? Is
it possible that some of my devices are not compatiable? Please help.
------------------------------
From: Erik Max Francis <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.c,comp.unix.solaris,comp.lang.c++,comp.unix.programmer
Subject: Re: To core or not to core - You tell me
Date: Thu, 13 Apr 2000 20:46:46 -0700
Mark McIntyre wrote:
> But the macro preprocesses out to a value. And that value is either an
> integer 0 or such an expression cast to a void*. This value is
> represented in memory by some bitpattern.
Hence the problem; it is perfectly legal for NULL to be defined as 0,
which in and of itself is not a pointer. So it makes little sense to
talk about the "bit pattern of NULL"; what you mean is the bit pattern
of the null pointer. (Not to mention the fact that even writing a null
pointer constant does not necessarily involve an actual null pointer
being put somewhere, as Kaz pointed out in his reply to you.)
> Nit picking a la creme!
...
> Yup. Its healthy if you're a chimp though, so why not for us? Consider
> it a form of complimentary grooming...
That's my point; people are disagreeing with you because you are not
being sufficiently precise. The confusion about null pointers in
general arises because of imprecision. If you're going to try and be
nitpicky, expect to be nitpicked in return.
--
Erik Max Francis | email [EMAIL PROTECTED] | icq 16063900
Alcyone Systems | web http://www.alcyone.com/max/ | q3a Product
San Jose, CA | languages en, eo | icbm 37 20 07 N 121 53 38 W
USA | 969.843 Ms p.L. | 262 days left | &tSftDotIotE
__
/ \ The public is a fool.
\__/ Alexander Pope
------------------------------
From: Bill Hayles <[EMAIL PROTECTED]>
Crossposted-To: uk.comp.os.linux
Subject: Re: Random system hangs on Compaq P166/2.2.14
Date: Thu, 13 Apr 2000 15:55:02 +0200
Reply-To: [EMAIL PROTECTED]
On 12 Apr 2000 22:57:44 +0100, Nix <$}xinix{[email protected]> wrote:
>> Since this no longer appears to be a Linux specific problem, maybe one
>> of the gurus in alt.sys.pc-clone.compaq might be able to help.
>
>It's a no-name, not a Compaq. How much money do you think I've got? ;)
Sorry, I was looking at the subject, and was only replying because I'm
running SuSE 6.3 on a Compaq P166 with no problems!!
>From Benitachell, Alicante, Spain
Bill Hayles
[EMAIL PROTECTED]
------------------------------
Date: Thu, 13 Apr 2000 23:05:13 -0600
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: is linux 2.3 available?
Yung-Hsiang Lu wrote:
>
> Hi,
>
> I got a (experimental) package and it requires linux kernel 2.3. I
> have seen some discussion about kernel 2.3 but I could not find it!
> The latest version I found was 2.2.14 from redhat and slackware. Can
> anybody help me figure out where to find 2.3? Is it stable enough to
> try?
>
> Thanks a lot!
> Have a nice day.
>
> --
> Sincerely,
> Yung-Hsiang Lu
> [EMAIL PROTECTED]
ftp://ftp.kernel.org/pub/linux/kernel/v2.3/
--
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.hardware
Subject: Re: Idea !!!
Date: Fri, 14 Apr 2000 05:46:47 GMT
An other idea would be to stop buying Window$ specific hardware.
Dans l'article <8cvoar$svq$[EMAIL PROTECTED]>, "Akbar Avliyaev" <[EMAIL PROTECTED]> a
�crit :
> The main problem of Linux is hardware support.
> On the other hand Windows supports most of hardware,
> most vendors ship products with drivers for windows.
> I'm thinking about making a way to use windows drivers in Linux.
> Have anyone thought about it?
> Is it reasonable/possible?
>
>
>
------------------------------
From: Mark McDougall <[EMAIL PROTECTED]>
Subject: Re: Modules versions and insmod -f
Date: Sat, 15 Apr 2000 10:04:47 +1000
Pasi Savolainen wrote:
> As far as I can tell, the kernel (since 2.1.something) have a load-on
> demand (kmod) module. I guess you just have to compile it in.
I know that. A module compiled for 2.2.5 loads on demand fine under
2.2.5.
I'm trying to get it (a 2.2.5 module) to do the same under 2.2.12!
------------------------------
From: [EMAIL PROTECTED] (Charles Blackburn)
Crossposted-To:
comp.os.linux.development.apps,comp.os.linux.development,comp.os.ms-windows.programmer.win32
Subject: Re: porting WIN32 to UNIX (Linux)
Date: Wed, 12 Apr 2000 20:18:23 +0100
Reply-To: [EMAIL PROTECTED]
On Wed, 12 Apr 2000 10:25:31 GMT, [EMAIL PROTECTED] wrote:
>Thanks for the pointers. I've implemented a class to handle
>multi-resource access but was wondering if there was a standard way of
>implementing timeouts while waiting on semaphores or mutexes.
have you looked at the alarm function and SIGALRM?
that's the easiest way to do it. and if you are waiting on more than one
"item" then just use an array or even bit-masks to fathom out which one
timed-out.
--
Charles Blackburn -=- Remove NOSPAM to email a reply.
Summerfield Technology Limited - SuSE Linux Reseller & Birmingham L.U.G sponsor
[EMAIL PROTECTED]
[EMAIL PROTECTED]
8:12pm up 3 days, 1:23, 1 user, load average: 0.00, 0.02, 0.00
------------------------------
From: "David Ellsworth" <[EMAIL PROTECTED]>
Subject: Thanks, but that doesn't help me...
Date: Fri, 14 Apr 2000 07:40:24 GMT
Thanks. But unfortunately that doesn't help me. There's no MTRR mode --
documented, at least -- for read-combining. And framebuffer code is designed
mainly for *writing* to video memory... not reading from it.
"Pasi Savolainen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> David Ellsworth wrote:
>
> > As for #2... it seems I need to patch the kernel. But where do I start?
I'm
> > hoping all I need to do is add a range check somewhere. But where?
>
> I really don't know much about this thing, but one place to look at
> things is kernels MTRR section and, of course, framebuf code. especially
> matrox one as it seems to be most well written.
>
> hope-this-did-help-you
>
> pasi
=====
To reply through email, please remove NO and SPAM from my address.
------------------------------
From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Crossposted-To: comp.os.linux.development,comp.os.linux.misc
Subject: Re: Cheap/Free alternatives to Hummingbird eXceed
Date: 14 Apr 2000 07:58:21 GMT
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Kristjan Kristinsson) writes:
> Isn't VNC a _VERY_ slow alternative?
It's rather slow if you want to use it to display a Windows
desktop on another machine, due to the hooking of the
display routines they've got to do on Windows. I find
it rather usable when using an 800x600/256 color setting.
Going from UNIX to Windows, it's quite fast, and a viable
replacement for a PC-based X server.
--
Stefaan
--
--PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)--
Ninety-Ninety Rule of Project Schedules:
The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.
------------------------------
From: Mei <[EMAIL PROTECTED]>
Subject: Re: device driver development
Date: Fri, 14 Apr 2000 12:01:19 +0200
Reply-To:
[EMAIL PROTECTED]
Long ha scritto:
>
> Please help... anyone,
>
> I am developing a device driver. Everytime after loading using insmod
> driver.o and it has an error in the driver. I am forced to reboot the
> system to reload the driver. Otherwise it says "driver.o: a module named
> driver already exists." Is there anyway that I can undo the loading so that
> I can reload the driver without having to reboot the system. I try rmmod
> but it says: "rmmod: module driver.o not loaded". Any suggestion is
> appreciated.
The rmmod works with the name of the driver without .o suffix. So in you load
it with
insmod driver.o
you must remove with
rmmod driver
Ciao Mei
------------------------------
From: Wolfram Gloger <[EMAIL PROTECTED]>
Subject: Re: Characterizing the memory usage of a process
Date: 14 Apr 2000 12:11:25 +0200
[EMAIL PROTECTED] writes:
> Does the kernel keep track of how many pages are actually
> *used* in a private mapping (ie. how many pages have been
> allocated by a copy on write to the process)?
Not per mapping, but on the global scale I think what you want is the
number of `dirty' pages, which you can get as the last (7th) field of
/proc/<pid>/statm.
Regards,
Wolfram.
------------------------------
From: Alan Donovan <[EMAIL PROTECTED]>
Subject: Re: Win32 Drivers running under Linux
Date: Fri, 14 Apr 2000 12:45:02 +0100
David Findlay wrote:
>
> Seeing that there are virtually no drivers for linux by manufacturers,
Not so: many companies now routinely write drivers or provide technical
(and sometimes financial) assistance to freelance linux driver writers.
Linux drivers have to be open source in order to withstand kernel
changes, so "binary-only" drivers are discouraged.
> would
> it be possible to use Wine to run Win32 drivers under Linux. It might not be
> the best thing to do, but it would avoid hardware non-compatablility issues.
Wine allows you to run unmodified Win 3.1 / Win32 binaries in usermode
in Linux. That this is at all possible is itself quite surprising.
However it does not emulate any of the various Windows driver models. To
do so would be impossibly hard work and also of limited use as driver
code must be both fast and reliable and in general, emulators are not.
Assuming it was possible, it would be politically undesirable because it
would actually prevent the acceptance of Linux by manufactures as a
common platform: lazy mfrs would continue to ship Windows-only drivers.
We need to pressure them into proper Linux support.
alan
--
========================================================================
Alan Donovan [EMAIL PROTECTED] http://www.imerge.co.uk
Imerge Ltd. +44 1223 875265
------------------------------
From: "Dmitry A. Fedorov" <[EMAIL PROTECTED]>
Subject: Re: device driver development and C++
Date: Fri, 14 Apr 2000 11:54:51 +0000
Kaz Kylheku wrote:
>
> On 13 Apr 2000 07:56:10 GMT, Peter T. Breuer <[EMAIL PROTECTED]> wrote:
> >Olivier Dufils <[EMAIL PROTECTED]> wrote:
> >: I am developping a device driver for linux.
> >: I first wrote it with the C language and it works perfectly.
> >: I now need to have a C++-Class in my driver. I then gave the extension
> >: ".cpp" to my driver file.
> >: When i now try to compile the file (driver.cpp), i got a lot of
> >: compiler-errors.
> >
> >: Can somebody help me?
> The real problem is that nobody has sanitized the kernel header files
> for use in C++.
C++ kernel module does not need sanitized kernel headers,
some preprocessor tricks is enough:
ftp://ftp.inp.nsk.su/export/fedorov/src/linux-cxx-1.5.tar.gz
Sanitation is needed for supress warnings only and is optional.
------------------------------
From: Henning <[EMAIL PROTECTED]>
Subject: Re: catching signals for bad stack
Date: Fri, 14 Apr 2000 12:59:44 +0100
> sigaltstack
I've tried
==================snip==================
pcSigStack = (void*)malloc(SIGSTKSZ);
sigAltStack.ss_sp = pcSigStack;
sigAltStack.ss_size = SIGSTKSZ;
sigAltStack.ss_flags = 0;
i = sigaltstack(&sigAltStack, &sigOldStack);
==================snap==================
but the alternate signal stack is not used.
What do I do wrong?
------------------------------
From: [EMAIL PROTECTED] (Nick Andrew)
Subject: Re: Getting IP address of self in C?
Date: 14 Apr 2000 22:14:47 +1000
In <8d55t0$6ld$[EMAIL PROTECTED]> "John Smith" <[EMAIL PROTECTED]> writes:
>You can create a socket with INADDR_ANY as adress,
>and the machines's IP will be binded .
Only when you specify the other end :-) How do you expect the kernel to
decide for you which of the 3 ethernet interfaces and the ppp0 interface
is the correct one for the local address of the socket?
Nick.
--
Pacific Internet SP4 Fax: +61-2-9233-6545 Voice: 9253-5762
G.P.O. Box 3400, Sydney NSW 1043 http://www.zeta.org.au/
------------------------------
From: [EMAIL PROTECTED] (Mike Dowling)
Subject: 2.3.99-pre? and /boot
Date: 14 Apr 2000 12:25:38 GMT
I have set
INSTALL_PATH=/boot
in the /usr/src/linux/Makefile, yet the latest kernels still dump the
newly compiled kernels in /. What else has to be changed, or is this a
minor bug?
While I'm at it, on booting the 2.3 kernels, the system waits for
several minutes while the 2.2 kernels don't. The delays occur when init
starts executing the rc scripts. The first executes, and writes the
message that the outomounter has been started. Then there is the pause,
then the rest execute. Strangely, all the rc scripts execute
immediately if stopped and restarted. Does anybody have an idea as to
what might be causing the delays?
Thanks,
Mike
--
My email address [EMAIL PROTECTED] above is a valid email address.
It is, in fact, a sendmail alias; the digit 'N' is incremented regularly.
Spammed aliases will be deleted. Currently, mike[23,24]
are valid. If email to mikeN bounces, try mikeN+1.
------------------------------
From: Paul McGaughey <[EMAIL PROTECTED]>
Subject: Drivers for newer HP printers?
Date: Fri, 14 Apr 2000 07:31:05 -0500
Anyone know if there are drivers available for some of the newer HP printers?
In particular, I am looking for something that will work with a DeskJet 952C,
(the DeskJet 950 series).
Paul.
------------------------------
From: Jerome Corre <[EMAIL PROTECTED]>
Subject: Re: device driver development
Date: Fri, 14 Apr 2000 12:38:27 GMT
In article <8d4np3$aum$[EMAIL PROTECTED]>,
"Long" <[EMAIL PROTECTED]> wrote:
> I even tried that (without the .o) and still does not work. I know
that my
> driver probably has problem and I believe that that is why rmmod does
not
> work. If there is anyway to force rmmod or change any system file to
remove
> the module w/o having to reboot, I would be happy.
>
> Manoj Patil <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > You must not give the .o extension while removing the loaded kernel
module
> >
On problem could be the "use count" of your module,if you type
'cat < /proc/modules' all the loaded modules and their use count will
be displayed. I think (but not sure) that rmmod can not remove a module
if use count is different from 0.
your module should should take care of increasing and decreasing the
use count.
hope this help
Jerome
--
Jerome Corre
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
** 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
******************************