Linux-Development-Sys Digest #256, Volume #8 Sat, 4 Nov 00 14:13:09 EST
Contents:
Re: Kernel Mismatch Right out of the Box ("Daniel Lenski")
How to decompress debian package? Pls help (Alan Po)
Given a pointer to a function from other kernel module. When I call this function
system halts... ([EMAIL PROTECTED])
Re: Max. bytes that can be read out of kernel (Andi Kleen)
ext2 undelete (MENON Jean-Francois)
PCI device to device DMA transfer ([EMAIL PROTECTED])
Re: How to decompress debian package? Pls help (Philip Armstrong)
Re: How to decompress debian package? Pls help ("Peter T. Breuer")
Re: Get inet6 address of an interface ? ("Michael R. Schwarzbach")
Getting my Network adapter to work on linux ("Harish Yarlagadda")
Help: C++ Libraries (John D Prokopek)
Re: ext2 undelete (Dr H. T. Leung)
Re: Getting my Network adapter to work on linux (Dr H. T. Leung)
The Request function (Richard)
Re: Help: C++ Libraries ("D. Stimits")
Re: Max. bytes that can be read out of kernel ("Robert C. Morris")
Re: Kernel Mismatch Right out of the Box ("Robert C. Morris")
Re: Linux GUI development ("Robert C. Morris")
Re: Whats an 'unresolved symbol' ? ("J.Smith")
Java classes for text interface ("Al Martin")
----------------------------------------------------------------------------
From: "Daniel Lenski" <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat
Subject: Re: Kernel Mismatch Right out of the Box
Date: Sat, 04 Nov 2000 01:15:50 +0500
May I suggest Linux Mandrake version 7.1? It has excellent hardware
detection, everything works out of the box (I've been using it for three
months and haven't found anything that doesn't :-), it's better optimized,
and it's easier to install. It's not just for newbies (although it's good
for them!) and it doesn't restrict you in any way. I'm using it (among
other things) for web development, routing, ip masquerading, and gnome
application development! Don't get the new version 7.2, however.
Mandrake released it as the final version when it is in fact a buggy and
incomplete beta ... they will certainly have a lot of disgruntled users by
the time they fix it! However, 7.1 is rock solid stable. Go to
www.linux-mandrake.com and get the cd images! I hope this helps :-)
--
Daniel Lenski
[EMAIL PROTECTED]
"If we couldn't laugh at things that didn't make sense,
we couldn't react to a lot of the world around us."
--Calvin and Hobbes
> I just purchased RedHat 7 Professional Version ( $180!!!! ) I figured
> I'd bite the bullet, not get the $30 or the $60 version.
>
> Enough already. I install the damn thing and when I recompile my device
> drivers from scratch, I get a Kernel Mismatch warning error during
> installation. Saying the driver was compiled for 2.2.16-22 and this
> kernel is 2.4.something.
------------------------------
From: Alan Po <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.development.apps
Subject: How to decompress debian package? Pls help
Date: Sat, 04 Nov 2000 18:43:41 +0800
Dear sir
I have got a ash file but is in debain package (deb extension). I don't
know how to decompress under Red Hat. Would you give me help? Thanks a
lot
Alan Po
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED]
Subject: Given a pointer to a function from other kernel module. When I call this
function system halts...
Date: Sat, 04 Nov 2000 10:53:28 GMT
I develop kernel module (virtual file system like proc) which should
basically delegate work to the real on-disk file systems (the types of
these fs is not known at compile time).
The typical problem in this task is to get real inode or file if
virtual inode/file is given. This is already done successfully. After
that, I can get pointer to the structs file_operations,
inode_operations, super_operations from real on-disk file system. But,
let's say, when I call "real file_operations::readdir()" from "my
virtual file_operations::readdir()" the sytems halts. I'm wondering if
there is some tricky specificity while calling functions from other
modules or I simply do something wrong (for example, provide wrong
arguments)
Thanks
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Andi Kleen <[EMAIL PROTECTED]>
Subject: Re: Max. bytes that can be read out of kernel
Date: 04 Nov 2000 11:45:48 +0100
"Rob Morris" <[EMAIL PROTECTED]> writes:
> Hello,
>
> I am writing a simple kernel loadable module that reads an array on the
> kernel side. I have not been able find any specs. on how large the array
> can be for a "one read - read operation" (i.e. i read the array all at once
> with copy_to_user). The array is as follows:
>
> unsigned int ArrayName[MaxSize];
>
> What I need to know is how many bytes can be read out of the kernel at any
> one instance of the read op for the device driver.
In theory there is no limit other than the available memory, but in
practice you usually should split it into smaller chunks and put
scheduling points inbetween to prevent scheduling artifacts.
64K is a good limit.
-Andi
------------------------------
From: MENON Jean-Francois <[EMAIL PROTECTED]>
Subject: ext2 undelete
Date: Sat, 04 Nov 2000 11:26:38 +0000
hello
I'm working on a kind of undelete for ext2 fs. I would like to know if
there is other people working on the same problem.
I would like to know how I can override the "unlink" function with my
own function?
(my "rm" command already works) It seems to be somthing with ldconfig,
but I'm not sure.
many thanks,
jf
------------------------------
From: [EMAIL PROTECTED]
Subject: PCI device to device DMA transfer
Date: Sat, 04 Nov 2000 11:37:40 GMT
Hi All,
I have a simple question.
Does linux allow DMA transfer between two PCI device. (without
involving the CPU). I know that NT doesn't support this but does Linux?
rgds
jeseem
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Philip Armstrong)
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.development.apps
Subject: Re: How to decompress debian package? Pls help
Date: 4 Nov 2000 13:07:56 -0000
In article <[EMAIL PROTECTED]>, Alan Po <[EMAIL PROTECTED]> wrote:
>I have got a ash file but is in debain package (deb extension). I don't
>know how to decompress under Red Hat. Would you give me help? Thanks a
>lot
IIRC, debian packages are simple ar archives which you can unpack with
ar. They contain a couple of .tar.gz files which contain the binaries
and control information association with the packaging system
respectively.
HTH,
Phil
--
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup,comp.os.linux.development.apps
Subject: Re: How to decompress debian package? Pls help
Date: 4 Nov 2000 14:55:03 GMT
In comp.os.linux.misc Alan Po <[EMAIL PROTECTED]> wrote:
: I have got a ash file but is in debain package (deb extension). I don't
: know how to decompress under Red Hat. Would you give me help? Thanks a
: lot
(It's not compressed). Use dpkg (install it first). Or use alien to
convert it to a tar or an rpm and install that (install alien first).
Or you can just unpack the two tars inside it using ar, and install
them using tar. Man ar and man tar for more info, but it should all
become very obvious after you run ar tv foo.deb.
Peter
------------------------------
From: "Michael R. Schwarzbach" <[EMAIL PROTECTED]>
Subject: Re: Get inet6 address of an interface ?
Date: Sat, 04 Nov 2000 16:02:06 +0100
[EMAIL PROTECTED] wrote:
> Hi all,
>
> We are developing a link layer network driver in a linux loadable
> module on kernel 2.2.14.
> We need to get the IPv4 and IPv6 addresses of this driver interface,
> from inside our module code.
> For IPv4, we've used devinet_ioctl (SIOCGIFADDR, struct ifreq *) with
> ifr_name set to our interface name and it works well.
> For IPv6, there is no similar function. We've seen in the kernel code
> the function ipv6_get_lladdr called by ndisc but it's not an exported
> symbol.
>
> Any idea ?
how about reading it from /proc
>
> Thanks for help,
> Sylvie
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
From: "Harish Yarlagadda" <[EMAIL PROTECTED]>
Subject: Getting my Network adapter to work on linux
Date: Sat, 04 Nov 2000 15:06:34 GMT
I bought a new D-Link Network adapter. I also got the drivers for it on
linux ( It is a .c file ). So how do I get this Network adapter to work on
my Linux RedHat 6.0 system.
------------------------------
From: John D Prokopek <[EMAIL PROTECTED]>
Subject: Help: C++ Libraries
Date: Sat, 04 Nov 2000 12:17:25 -0500
I am very new to linux C++ development and need to find out what
libraries to link in to my app.
I am running RH6.2. Is there any documentation as to what methods are
contained in what libraries.
If not online how about a book. I am using gcc and cannot find any docs
on the various libs.
any help is greatly appreciated !
--
John D. Prokopek
[EMAIL PROTECTED]
"The bus came by and I got on
thats when it all began ...."
------------------------------
From: [EMAIL PROTECTED] (Dr H. T. Leung)
Subject: Re: ext2 undelete
Date: 4 Nov 2000 17:21:09 GMT
Well, there is the Ext2-Undelete HOWTO on LDP, and it is probably in your hard
disc. If you do "+linux +undelete" on Altavista, you would find a KDE/GTK/gnome
utility that can do disaster recovery and undeleting files. May not be what you
want, but then, you might want to look at them.
(I did a rm -rf , then cut and paste something in X and slip of finger and wow,
three small directories were gone, and I just did a quick shut down and went out
and look for such things [which I had an impression that it exists]...
recovered all of them in the end with the info in the
undelete HOWTO. Very grateful for it...)
In article <[EMAIL PROTECTED]>, MENON Jean-Francois
<[EMAIL PROTECTED]> writes:
|>
|> hello
|>
|> I'm working on a kind of undelete for ext2 fs. I would like to know if
|> there is other people working on the same problem.
|> I would like to know how I can override the "unlink" function with my
|> own function?
|> (my "rm" command already works) It seems to be somthing with ldconfig,
|> but I'm not sure.
|>
|>
|> many thanks,
|>
|> jf
--
--------------------------------------------------
"What you don't care cannot hurt you." Chap. 7a, AMS-NS
------------------------------
From: [EMAIL PROTECTED] (Dr H. T. Leung)
Subject: Re: Getting my Network adapter to work on linux
Date: 4 Nov 2000 17:32:17 GMT
You are probably going about it the wrong way. As far as I know, some D-link
network adapters are supported already supported by your current kernel
and RedHat 6.x has a little built-in utility (called Kuzo or something, that
has a Japanese sounding name) that can auto-detect new hardware; so the
possibility is that you need only to do configuration rather than any kind of
"driver installation" you might be thinking of.
I am afraid linux's drivers doesn't work the windows' way - in most cases you DO
NOT download add-ons like you seem to think you should be doing. Either your
current kernel already have the hardware support (either as a compiled in
component or as a runtime loadable module), or you have to go for a full kernel
upgrade, which would give you support of a whole list of newer hardwares, not
just one, or the bleeding edge way which is patching/modifying your kernel
source code tree and selectively recompile some part of it...
Find out what exactly your D-link adapter is, have a look under
/usr/src/linux/drivers/net and also under /usr/lib/{some number}/modules/net
(or is it /lib/{kernel version number}/modules/net ?), and do a "man modprobe"
and "man modules" to learn about runtime driver modules.
In article <_BVM5.24553$[EMAIL PROTECTED]>, "Harish Yarlagadda"
<[EMAIL PROTECTED]> writes:
|> I bought a new D-Link Network adapter. I also got the drivers for it on
|> linux ( It is a .c file ). So how do I get this Network adapter to work on
|> my Linux RedHat 6.0 system.
--
--------------------------------------------------
"What you don't care cannot hurt you." Chap. 7a, AMS-NS
------------------------------
From: Richard <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.kernel
Subject: The Request function
Date: Sat, 04 Nov 2000 01:27:26 +0800
I am trying to write a module to use the block device driver to bypass
the buffer cache and get the data directly from the hard disk.
first, I try to look out the sector number from the inode, then I try to
add a request to the request list of the hard disk device. However,
those functions such as add_request are not exported and I can't use
them directly. How can I overcome these kind of problems ??
Thanks,
Richard.
------------------------------
Date: Sat, 04 Nov 2000 10:53:37 -0700
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Help: C++ Libraries
John D Prokopek wrote:
>
> I am very new to linux C++ development and need to find out what
> libraries to link in to my app.
> I am running RH6.2. Is there any documentation as to what methods are
> contained in what libraries.
> If not online how about a book. I am using gcc and cannot find any docs
> on the various libs.
>
> any help is greatly appreciated !
>
> --
> John D. Prokopek
> [EMAIL PROTECTED]
>
> "The bus came by and I got on
> thats when it all began ...."
Use g++ instead of gcc.
There are a lot of books on C++, but the base reference is "C++
Programming Language" (I think in 3rd edition), by Bjarne Stroustrup.
A general list of libraries (not just linux) is listed at:
http://www.trumphurst.com/cpplibs1.html
Some of the really nice stuff is in the STL (Standard Template Library),
which has several books out on the subject.
For a more unorthodox means of looking at what is there, cd to the c++
std lib dir (for standard RH 6.2 at /usr/lib/), and view the following
files:
ls libstdc++-libc6*.so*
On the lib file you find (assume name libstdc++-libc6.1-1.so.2), do this
to view some of its symbols:
nm libstdc++-libc6.1-1.so.2 | c++filt | awk '/^[a-z0-9 ]* [a-zA-Z]/' -
It'll give you more than you wanted in terms of just naming library
contents. You'll have to consult a book about individual entries. The
base classes and templates often are described in the Stroustrup book,
e.g., istream, ostream, complex template, basic_string template, so on.
------------------------------
From: "Robert C. Morris" <[EMAIL PROTECTED]>
Subject: Re: Max. bytes that can be read out of kernel
Date: Sat, 4 Nov 2000 10:04:35 -0800
>In theory there is no limit other than the available memory, but in
>practice you usually should split it into smaller chunks and put
>scheduling points inbetween to prevent scheduling artifacts.
>64K is a good limit.
>
>-Andi
Thanks for the information Andi!! I am only doing about 32k, so I should be
good!! I was going to schedule it in 4 or 8k chunks, but from your comment,
it sounds like I will be O.K. with the all at once philosophy. I just
wanted to know if there was a limit, before I got to far ahead of myself in
the coding :)
Again, thank you,
Rob
------------------------------
From: "Robert C. Morris" <[EMAIL PROTECTED]>
Subject: Re: Kernel Mismatch Right out of the Box
Date: Sat, 4 Nov 2000 10:16:55 -0800
>I just purchased RedHat 7 Professional Version ( $180!!!! ) I figured
>I'd bite the bullet, not get the $30 or the $60 version.
>
>Enough already. I install the damn thing and when I recompile my device
>drivers from scratch, I get a
>Kernel Mismatch warning error during installation. Saying the driver was
>compiled for 2.2.16-22 and this kernel is 2.4.something.
>
>I redefine UTS_RELEASE to be 2.2.16-22 for the hell of it, and my
>drivers compiled and installed correctly. But they don't work.
>
>Can someone tell me what the f I am doing incorrectly? During the
>installation I happened to glance at the
>kernel version and it was 2.2.16-22. Why does this version think it is
>2.4?
>
I don't know how computer savy you are with compiling kernels, but you can
set up your own configuration which includes some kernel versioning options
for modules. I would suggest getting a good book on this or look up on the
web how to compile the linux kernel.
The first step is configuring your machine, from x windows this can be done
by typing in "make xconfig" at the prompt, but you have to be in the
/usr/src/linux directory. It gives you the option to save your old config,
I would highly suggest this. The do the following steps:
make dep
make clean
make bzImage
make modules
make modules_install
make bzlilo
Then reboot....ALL of the above steps have to be done within the
usr/src/linux directory. One thing to note with this, you are changing your
boot kernel, unless you make another source directory (make a copy of the
current one) and this could mess up your computer unless you know what you
are doing. If you make another source directory, then you will have to
change the /etc/lilo.conf file to reflect that. Like I said it is involved,
unless you are familiar with the kernel and what not. So read up on the
detail and good luck :)
Rob
------------------------------
From: "Robert C. Morris" <[EMAIL PROTECTED]>
Subject: Re: Linux GUI development
Date: Sat, 4 Nov 2000 10:38:38 -0800
ROFL!! /dev/random
NICE!!!
[EMAIL PROTECTED] wrote in message <[EMAIL PROTECTED]>...
>In article <[EMAIL PROTECTED]>, Tux <[EMAIL PROTECTED]> wrote:
>
>>First: You can't make a windows out of a linux. Where to put the
>>crash-timer?
>
>/dev/random
>
>--
>http://www.spinics.net/linux
------------------------------
From: "J.Smith" <[EMAIL PROTECTED]>
Subject: Re: Whats an 'unresolved symbol' ?
Date: Sat, 4 Nov 2000 19:47:27 +0100
Thanks for the info. Cause although I am a non-programmer (does
shell-scripting count? ;), I am aware of some basic programming concepts,
and this explanation is just the right level of 'technical-detail' I needed.
But just to make sure I understand correctly, let me check it here:
Basically it means that the piece of code is trying to call a subroutine or
function that is not contained in the executable itself, but that lives
elsewhere on the system, like in a shared library. And fails to find it.
Right?
So, if one has the sources and binary for the executable that generates the
error, is it possible for a non-programmer to 'quick-n-dirty' find out what
function/symbol the program is looking for, and where the program is trying
to find the function? For example, can I find out in what library the
program is trying to locate the function? Or even verify that the function
exists in that library? For example, could it be usefull to use something
like 'ldd' or even 'grep functionname *.c' to get me some rudimentary info
that would help me in futher troubleshooting issues like these?
------------------------------
From: "Al Martin" <[EMAIL PROTECTED]>
Subject: Java classes for text interface
Date: Sat, 04 Nov 2000 18:49:04 GMT
I'm looking for some java classes that will allow me to build a full screen
interface in text mode. Something that will let me place text in any
position on the text screen. A java wrapper for ncurses maybe.
Any hints anyone?
------------------------------
** 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
******************************