Linux-Development-Sys Digest #427

2001-01-17 Thread Digestifier

Linux-Development-Sys Digest #427, Volume #8 Thu, 18 Jan 01 03:13:08 EST

Contents:
  Re: Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x) ("Marcus 
Jäger")
  Linux Opportunity  (Jarrod Ditmore)
  Re: how to turn on/off the 3 LEDs on the keyboard? (Allodoxaphobia)
  Device Driver Engineers Needed-Great Oppoprtunity !! (larry)
  Device Driver Engineers Needed-Great Opportunity!! (larry)
  Re: Ansi C++ forbids implicit conversion from 'void *' in argument passing 
([EMAIL PROTECTED])
  CALL FOR PAPERS for the O'REILLY OPEN SOURCE CONFERENCE 2001 (Simone Paddock)
  BIGMEM patch (Jay Braun)
  Re: linux+fortran : segmentation fault (Robert Redelmeier)
  Re: double to byte stream convert (David Wragg)
  Re: BIGMEM patch (David Wragg)
  Re: BIGMEM patch (Jay Braun)
  Re: BIGMEM patch ([EMAIL PROTECTED])
  Automatically loading SCSI module ("Paul D. Smith")
  How to get root directory of current user? (InterFan)
  Re: How to get root directory of current user? (InterFan)
  Re: linux+fortran : segmentation fault (Josef Moellers)
  Re: Automatically loading SCSI module (Josef Moellers)
  Re: How to get root directory of current user? (Josef Moellers)
  Which method is right to me ? ("Ho-il, Kang")



From: "Marcus Jäger" <[EMAIL PROTECTED]>
Subject: Re: Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x)
Date: Wed, 17 Jan 2001 22:03:34 +0100

i read the howto "kernel" and followed teh instructions.
also these which were in the readme of teh new 2.4 kernel.
but nor the on nor the ohter method was successfull
do i have something wrong installed???


"Bill Anderson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> "Marcus Jäger" wrote:
> >
> > i did run "make bzlilo"
> > that is correct, or not?
>
> ONLY IF you have an image section that points to the new kernel.
> It should point to /vmlinuz for bzlilo compiled kernels (unless you
> change the kernel Makefile, which I doubt).
>
> Try the SUSE docuemntation, I believe they have asection on how to
> rebuild kernels on their system.
>
> man lilo.conf
>
>
>
> --
> Bill Anderson   Linux Specialist
> Modular Network Storage R&D
> Random Quote:
> Portable: survives system reboot.



--

From: [EMAIL PROTECTED] (Jarrod Ditmore )
Subject: Linux Opportunity 
Date: Wed, 17 Jan 2001 22:20:52 GMT

Hello Linux Professionals, 

My name is Jarrod Ditmore and I work for an Executive Search firm
called D. Brown and Associates. We are currently working with a
Fortune 500 company hiring experienced Linux Professionals across the
United States. The initiative is to provide services for B2B and B2C.
Job description:
Understand LINUX O/S technology,trends, application and middle-ware
implementation and architectural specifics.  Work with LINUX
Technology
Center resources to provide feedback and keep abreast of changing
LINUX
technologies.  Work closely with LINUX solutions and marketing
resources
to provide feedback with changing LINUX technologies.  Participate in
managing and integrating  technical resources into
key LINUX solution development areas.
**
LINUX O/S, applications & architecture  
e-Business industry & technology
Systems administration & security   
Networking  
UNIX & NT platforms   
Organization & time management 
Strong oral/written communications 
Presentation skills 
The positions require travel 65 to 75%. This entails during the week
travel and always home on weekends. Looking for individual with 3
years or more experience. 
If you're a specialist or a guru we would like to talk with you. 
Send your resume to [EMAIL PROTECTED] 

I look forward to hearing from you. 

Jarrod Ditmore


--

From: [EMAIL PROTECTED] (Allodoxaphobia)
Subject: Re: how to turn on/off the 3 LEDs on the keyboard?
Reply-To: If You Reply <[EMAIL PROTECTED]>
Date: 17 Jan 2001 22:36:47 GMT

On Wed, 17 Jan 2001 15:39:39 +0800, Hackker Wong scribbled:
>hi,
>
>do u know how to turn on/off the 3 LEDs (caps lock, num lock, scroll
>lock) on the keyboard? 

I cover them with black electrical tape.   

Jonesy
-- 
 | Marvin L Jones   | jonz   |  W3DHJ   |  OS/2
 |  Gunnison, Colorado  |  @ |  Jonesy  |  linux   __
 |   7,703' -- 2,345m   |   frontier.net |  DM68mn SK

--

From: larry <[EMAIL PROTECTED]>
Subject: Device Driver Engineers Needed-Great Oppoprtunity !!
Date: Wed, 17 Jan 2001 22:44:00 GMT

*** GREAT CAREER OPPORTUNITY***

My client a WORLD WIDE LEADER in custom device driver & system level
software development seeks talented software engineers.
2 + years experience in development of device drivers.

You will work with latest and greatest technologies and w/ the best and
brightest engineers in the industry.

Full Time TELECOMMUTE position(

Linux-Development-Sys Digest #426

2001-01-17 Thread Digestifier

Linux-Development-Sys Digest #426, Volume #8 Wed, 17 Jan 01 16:13:17 EST

Contents:
  linux+fortran : segmentation fault ("Estelle LEFRANCOIS")
  Re: double to byte stream convert ("O.Petzold")
  Re: PATH for cooperating executables? (John Reiser)
  Linua and Ethernet card (Fernando Alfonso Villanueva)
  Problems with EXPORT_SYMBOLS() (Michael Palme)
  Problems with EXPORT_SYMBOLS() (Michael Palme)
  Re: linux+fortran : segmentation fault (Michel Talon)
  Re: Running MSC6/MSC7 under linux? (bgeer)
  Re: system halts at exchange with ISA (Lucia Rotger)
  Re: Can't boot suse linux 7.0 on a scsi hdd (scsi-controller: ncr 53c8x) (Bill 
Anderson)
  Re: 2.4.0 ISDN Problems (Konstantinos Agouros)
  Re: Running MSC6/MSC7 under linux? (Grant Edwards)



From: "Estelle LEFRANCOIS" <[EMAIL PROTECTED]>
Subject: linux+fortran : segmentation fault
Date: Wed, 17 Jan 2001 16:23:02 +0100

Hi,
Running a well known fortran program (perfectly working on other machines !)
under linux (Redhat 6.2), I've got a kind of random error occuring. My
program crashes leading to the message :
Segmentation fault (core dumped)

My question is : What does it mean and why I've got such a random error ?
Could it be a hardware problem ?

Thanks.



--

From: "O.Petzold" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.networking
Subject: Re: double to byte stream convert
Date: Wed, 17 Jan 2001 18:19:53 +0100

> Thanks to all who got an answer to me. Unfurtuneally the problems
> are going on. As I can read in the RPC 1832 /XDR. I have to
> bit shift the neg., exp., und mat. and I'm not a expert for this.

[...]

> My first try looks like this:

shit [snip]

> No idea if this is working in the correct manner. I assume using a char[]
> isn't very usefull, uint would be better but, how can I catch up the right
> Byte of the unit ?
> Who can help to encode  and decode this to the XDR Standard ?
> Another question to the NBO. Why does exist only htonl/htons (long int
> and short int) and no "normally" 4Byte int ? Does the XDR independens
> from the NBO ? Regarding the Answers, I should use these functions so
> I assume these functions are much more low level as XDR. Well, how can
> I implement the NBO per hand, is there an example ? The Problem is
> I'm on an embedded system, where I don't have to much libs.

Well, here is the 2nd try. Maybee someone has some improvements for
fastness and portability ?? or simple hints ? The problem with XDR is still
here.

#include 
#include 
#include 
#include 
#include 

using namespace std;

#define TEST_BIT(a, n) (((a)[(n) / CHAR_BIT] & (unsigned char)(1U << ((n) %
CHAR_BIT))) ? 1 : 0)

void print_bits(unsigned char *s, size_t len, const char* delim=" ")
{
for(size_t i = 0; i < len; i++) {
for(size_t j = 0; j < CHAR_BIT; j++) {
printf("%d", TEST_BIT(s, i * CHAR_BIT + j) ? 1 : 0);
}
printf(delim);
}
printf("\n");
}
int main()
{
double fp = sin(-0.2345);
union ieee754_double fp_in, fp_out;

fp_out.d = fp;

unsigned int negative = fp_out.ieee.negative;
unsigned int exponent  = fp_out.ieee.exponent;
unsigned int mantissa0 = fp_out.ieee.mantissa0;
unsigned int mantissa1 = fp_out.ieee.mantissa1;

printf("negative: %d\t\t", negative);
print_bits((unsigned char*)&negative, sizeof(negative));

printf("exponent: %d\t\t", exponent);
print_bits((unsigned char*)&exponent, sizeof(exponent));

printf("mantissa0: %d\t", mantissa0);
print_bits((unsigned char*)&mantissa0, sizeof(mantissa0));

printf("mantissa1: %d\t", mantissa1);
print_bits((unsigned char*)&mantissa1, sizeof(mantissa1));

printf("out_fp = %f\n\n", fp_out.d);

unsigned long long fp_bs = 0; // bitstream

fp_bs  = mantissa1;
fp_bs  = fp_bs << 32;
fp_bs |= (mantissa0 << 12);
fp_bs |= (exponent << 1);
fp_bs |= (negative & 0x01);

printf("out_bs = ");
print_bits((unsigned char*)&fp_bs, sizeof(fp_bs));
printf("\n");

mantissa1 = fp_bs >> 32;
mantissa0 = (fp_bs >> 12) & 0xF;
exponent  = (fp_bs >> 1) & 0x7FF;
negative = fp_bs & 0x01;

fp_in.ieee.negative = negative;
fp_in.ieee.exponent = exponent;
fp_in.ieee.mantissa0 = mantissa0;
fp_in.ieee.mantissa1 = mantissa1;

printf("negative: %d\t\t", negative);
print_bits((unsigned char*)&negative, sizeof(negative));

printf("exponent: %d\t\t", exponent);
print_bits((unsigned char*)&exponent, sizeof(exponent));

printf("mantissa0: %d\t", mantissa0);
print_bits((unsigned char*)&mantissa0, sizeof(mantissa0));

printf("mantissa1: %d\t", mantissa1);
print_bits((unsigned char*)&mantissa1, sizeof(mantissa1));

printf("in_fp = %f\n", fp_in.d);
}


--

From: John Reiser <[EMAIL PROTECTED]>
Subject: Re: PATH for cooperating executables?
Date: Wed, 17 Jan 20

Linux-Development-Sys Digest #425

2001-01-17 Thread Digestifier

Linux-Development-Sys Digest #425, Volume #8 Wed, 17 Jan 01 10:13:11 EST

Contents:
  Re: newbie question: mapping heap to shared memory (Kasper Dupont)
  Re: 2.4.0 ISDN Problems (Holger Eitzenberger)
  New protocol ("hebre")
  Re: How to get CPU & Memory status in kernel? (Kasper Dupont)
  Re: New protocol (Kasper Dupont)
  Re: GetTickCount() in Linux? ("Slawek Grajewski")
  Block device driver for flash ("Slawek Grajewski")
  Re: make bzImage fails (Hauser Sepp)
  Re: su cannot run /bin/bash? was: 2.2.18 won't boot diskless (Ulrich Hahn)
  Re: realloc crashes with SIGSEGV ([EMAIL PROTECTED])
  modify /proc/sys/net/core/wmem_max from a kernel module (Jerome Tollet)
  Re: New protocol ("hebre")
  Re: Emacs window size. ("Slawek Grajewski")
  Re: Emacs window size. ("Slawek Grajewski")
  Re: Simple way to display an animation? (Michael Wimmer)
  Re: how to turn on/off the 3 LEDs on the keyboard? (Simon)
  depmod making dependecies of wrong modules dir ([EMAIL PROTECTED])
  Re: Emacs window size. (Thaddeus L Olczyk)



From: Kasper Dupont <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: newbie question: mapping heap to shared memory
Date: Wed, 17 Jan 2001 09:10:34 +

adwait wrote:
> 
> Kasper,
> I want to create a single data structure in shared memory and use it from
> number of processes using semaphores and appropriate access privileges. I
> should be able to dynamically cast the heap in different processes and then
> use it. I can rephrase my question as follows;
> 
> I need to know a way where by I can create a data structure in shared memory
> i.e. when I say new to create an object I should be able to create the object
> with staring address of shared memory.
> 
> Please help
> 
> Adwait

I can think of two ways to do this either by using a shared
memory segment or a shared memory mapped file.

The shared memory segment can be allocated using shmget,
mapped using shmat, and deleted using shmctl.

The file is created using open or creat, mapped using mmap,
resized using truncate, and deleted using unlink.

Which solution you should use depends on the lifetime of
the datastructure. If the datastructure should exist even
at times when no program is using it I suggest files, if
the datastructure should be deleted when the last process
stops using it you can use a shared memory segment.

You cannot expect to map the structure at same address in
all processes, so shared memory should never contain
pointers. Instead of pointers write offset in bytes from
start of shared memory.

You might have to write some routines to handle allocation
and deallocation of shared memory. For example you could
implement two routines:
  int shared_malloc(size_t size);
  void shared_free(int ptr);

I don't know about synchronisation, but I would expect
file locks using fcntl would work for the file solution.

I don't know if you can allocate C++ objects in the shared
memory, but I can point out lots of potential problems.

Imagine the problem when an object created by one
executable is at a later mapped by another executable. The
executables could be two different programs or just two
different versions of the same program. The objects class
might not exist in the other executable, or if it exists
the methods could have changed or just be located at
another address in the executable.

-- 
Kasper Dupont

--

From: [EMAIL PROTECTED] (Holger Eitzenberger)
Subject: Re: 2.4.0 ISDN Problems
Date: Wed, 17 Jan 2001 10:08:55 +0100

In article <941i0b$6hd$[EMAIL PROTECTED]>, Morten Bøhmer wrote:

>I'm experiencing problems with the 2.4 release of the linux kernel. After
>compiling my kernel configuration, and recompiling the other packages
>(isdn4kutils etc.). When I connect one isdn line i works ok, but when i
>disconnect the machine freezes!!!
>
>Does anyone have a solution to this problem?

Did you read ./linux/Documentation/Changes for the things you need to
update?  I am running 2.4.0 with recompiled isdnutils 3.0 and all works
fine here but i had to update several things (like modutils, e2fsprogs,
...).

Regards.

Holger



-- 
+++ Debian GNU/Linux <[EMAIL PROTECTED]> +++ ICQ: 2882018 +++
++ GnuPG public key -> http://www.t-online.de/~eitzenberger ++

--

From: "hebre" <[EMAIL PROTECTED]>
Subject: New protocol
Date: Wed, 17 Jan 2001 12:09:11 +0300

Does anybody know how write some protocol to use it with Sockets.
I want to use SSL with standard Sockets API. This protocol sould be over
TCP/IP.

If You'll put here some links, I'll happy.


Thanks.





--

From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: How to get CPU & Memory status in kernel?
Date: Wed, 17 Jan 2001 09:24:31 +

Chien-Hwa Hwang wrote:
> 
> Hi,
> 
> I have a question. Does anybody know that how to get CPU usage and
> Memory status in linux kernel. I j

Linux-Development-Sys Digest #424

2001-01-17 Thread Digestifier

Linux-Development-Sys Digest #424, Volume #8 Wed, 17 Jan 01 04:13:07 EST

Contents:
  Re: Simple way to display an animation? (Kasper Dupont)
  Re: PATH for cooperating executables? (Kasper Dupont)
  Re: Symbol table storage. ("D. Stimits")
  Re: how to turn on/off the 3 LEDs on the keyboard? (Kasper Dupont)



From: Kasper Dupont <[EMAIL PROTECTED]>
Subject: Re: Simple way to display an animation?
Date: Wed, 17 Jan 2001 08:23:23 +

This is a multi-part message in MIME format.

==352605C4304F3893D614DA4
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Michael Wimmer wrote:
> 
> Hello!
> 
> I hope my question isn´t OT, but i didn´t find another appropriate news
> group...
> 
> I´ve got the following problem: I want to port a small app I wrote for
> my studies to Linux. It is a very basic 3d engine to display the
> physical behaviour of objects (for example tops). The only platform
> dependent code is the graphics code:
> 
> I want to display a 256-color animation in a window with size width x
> height. The frame that should be displayed is stored in an array of
> bytes (char buffer[width*height]) and each entry ranging from 0 .. 255
> represents a color whose R,G,B values are given in a seperate array with
> (of course) 256 entries.
> 
> Is there an easy way to program this without having to get into X too
> much? Is there any tutorial or basic information about programming
> graphical apps on the net? Or is there a lib that performs the above
> mentioned tasks (it should be open sourced?)
> 
> Thank you very much for your help
> 
> Regards
> 
> Mike Wimmer

How much you have to get into X depends on how efficient
and portable the code has to be.

The easiest probably is to make something that only works
on true color displays. If it should work with 8 bit
displays you would have to use a private color map or do
with less than 256 colors.

For a true color display you can allocate 256 colors with
XAllocColor and store the pixel values in an array. When
the image has to be displayed you would have to convert
it from an array of chars to an array of either shorts
or longs. The converted array can be displayed with
XPutImage.

Using XDrawPoint would be easier but horribly inefficient.

On my system the documentation can be found in:
/usr/doc/XFree86-doc-3.3.3.1/X11/xlib.PS.gz

I have attached some code I once wrote, which more or
less does the same as you requested. I think you might be
able to use parts of it.

-- 
Kasper Dupont

==352605C4304F3893D614DA4
Content-Type: text/plain; charset=iso-8859-1; name="X.c"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline; filename="X.c"

#include "emulator.h"
#include "post.h"
#include 
#include 

#define BORDER_SIZE 4

static pid_t main_pid;
static Display *xdisplay = 0;
static Window xwindow = 0;
static int xscreen;
static GC xgc = 0;
static Colormap cmap;
static unsigned long colpix[64];
static WORD *buf1,*buf2;

#define PREFIX_PRESS1
#define PREFIX_RELEASE  2
#define PREFIX_MPRESS   3
#define PREFIX_MRELEASE 4

static BYTE textmodepalette[17];

static BYTE red[256],green[256],blue[256];

static void default_textmode()
{
  static BYTE defaulttextmodepalette[17]=
  {0,1,2,3,4,5,20,7,56,57,58,59,60,61,62,63,0};
  memcpy(textmodepalette,defaulttextmodepalette,17);
}

static void default_rgb()
{
  int PCcols[64] = {0x000,0x00a,0x0a0,0x0aa,0xa00,0xa0a,0xa50,0xaaa,
0x005,0x00f,0x0a5,0x0af,0xa05,0xa0f,0xa55,0xaaf,
0x050,0x05a,0x0f0,0x0fa,0xa50,0xa5a,0xaf0,0xafa,
0x055,0x05f,0x0f5,0x0ff,0xa55,0xa5f,0xaf5,0xaff,
0x500,0x50a,0x5a0,0x5aa,0xf00,0xf0a,0xf50,0xfaa,
0x505,0x50f,0x5a5,0x5af,0xf05,0xf0f,0xf55,0xfaf,
0x550,0x55a,0x5f0,0x5fa,0xf50,0xf5a,0xff0,0xffa,
0x555,0x55f,0x5f5,0x5ff,0xf55,0xf5f,0xff5,0xfff};
  int c;
  for(c = 0 ; c < 255 ; c++) {
int x=PCcols[c&63];
red  [c] = ((x&0xf00)>>8)*17;
green[c] = ((x&0x0f0)>>4)*17;
blue [c] = ((x&0x00f)>>0)*17;
  }
}

static void mode13rgb()
{
  int c;
  default_rgb();
  default_textmode();
  for (c=0;c<16;++c) {
red  [c]=red  [textmodepalette[c]];
green[c]=green[textmodepalette[c]];
blue [c]=blue [textmodepalette[c]];
  }
  for (c=0;c<16;++c)
red[c+16]=green[c+16]=blue[c+16]=c*17;
  /* FIXME: Farve palette */
  for (c=32;c<256;++c)
red[c]=green[c]=blue[c]=0;
}

static inline void daemon_init()
{
  int c;
  /* Åbn vindue på default display. */
  if((xdisplay = XOpenDisplay(""))
 && (xwindow = XCreateSimpleWindow (xdisplay, DefaultRootWindow(xdisplay),
50, 50, 
640+2*BORDER_SIZE, 400+2*BORDER_SIZE,
2,0,0))) {

/* Vi vil høre om museknapper, taster og exposure. */
XSelectInput(xdis

Linux-Development-Sys Digest #423

2001-01-17 Thread Digestifier

Linux-Development-Sys Digest #423, Volume #8 Wed, 17 Jan 01 04:13:07 EST

Contents:
  X/Open Transport Interface on Linux (Mehmet Ali Guler)
  Re: devloper.kde.org is down? (The Ghost In The Machine)
  How to get CPU & Memory status in kernel? (Chien-Hwa Hwang)
  Symbol table storage. (Thaddeus L Olczyk)
  PATH for cooperating executables? (Kaelin Colclasure)
  Re: cpu_present_map vs. cpu_number_map? (Kaelin Colclasure)
  Re: Emacs window size. (Thaddeus L Olczyk)
  how to turn on/off the 3 LEDs on the keyboard? (Hackker Wong)
  Re: double to byte stream convert ("O.Petzold")



From: Mehmet Ali Guler <[EMAIL PROTECTED]>
Subject: X/Open Transport Interface on Linux
Date: Tue, 16 Jan 2001 16:58:02 -0600
Reply-To: [EMAIL PROTECTED]

Is there a port of the X/Open Transport Interface (XTI or TLI) to the
Linux platform? If so, where can I get them?
Any information would be greatly appreciated!



--

From: [EMAIL PROTECTED] (The Ghost In The Machine)
Subject: Re: devloper.kde.org is down?
Date: Wed, 17 Jan 2001 00:47:11 GMT

In comp.os.linux.development.system, Thaddeus L Olczyk
<[EMAIL PROTECTED]>
 wrote
on Wed, 03 Jan 2001 14:41:46 GMT
<[EMAIL PROTECTED]>:
>Anyone know whats up?
>Is this temporary or permanent?
>Is there anyplace else on the net I can go to get information?
>Especially a list of kde classes, and documentation of them.

Looks up to me.  You can check to see if you've got the right IP#
by using nslookup:

nslookup developer.kde.org
[...]

Non-authoritative answer:
Name:alpha.tat.physik.uni-tuebingen.de
Address:  134.2.170.97
Aliases:  developer.kde.org

-- 
[EMAIL PROTECTED] -- insert random misquote here
EAC code #191   5d:09h:38m actually running Linux.
Microsoft.  When it absolutely, positively has to act weird.

--

From: Chien-Hwa Hwang <[EMAIL PROTECTED]>
Subject: How to get CPU & Memory status in kernel?
Date: 17 Jan 2001 02:55:35 GMT

Hi,

I have a question. Does anybody know that how to get CPU usage and
Memory status in linux kernel. I just trace source code of kernel, and found
out it call si_meminfo() to get these. But it seems call assembly code to do
works at bottom layer. So I want to know how do kernel achieve this. Thanks.


Jack.

--

From: [EMAIL PROTECTED] (Thaddeus L Olczyk)
Subject: Symbol table storage.
Date: Wed, 17 Jan 2001 04:28:35 GMT
Reply-To: [EMAIL PROTECTED]

I've compiled the KDE source ( in particular kdelibs ) and am now
trying to single step through some of it.
The problem is that even though I enable debugging, and even check
makefile output (gcc/g++ always are called with the -g option ),
there seems to be no debugging/symbol table information stored
anywhere. 
I've also renamed strip so that it is not callled.
I wonder if the symbol tables might not be stored in a seperate file,
which does not get copied during the install process.
Can anyone help?
TIA

--

From: Kaelin Colclasure <[EMAIL PROTECTED]>
Subject: PATH for cooperating executables?
Date: 16 Jan 2001 21:42:39 -0800

I have an executable which needs to fork/exec a `helper' program that's
part of the same package. Is there an idiomatic way to determine the
path to the helper executable based on the parent process? Do people
just examine argv[0] for this sort of thing? I'd prefer to not have to
rely on the PATH environment if possible. [But I'd also prefer that the
program/helper work if the user decides to try them out from the build
tree, so capturing --exec-prefix at compile-time is not sufficient.]

-- Kaelin

--

From: Kaelin Colclasure <[EMAIL PROTECTED]>
Subject: Re: cpu_present_map vs. cpu_number_map?
Date: 16 Jan 2001 21:54:19 -0800

Kaelin Colclasure <[EMAIL PROTECTED]> writes:

[...]
> The kernel sources have revealed to me the existance of a couple of
> promising-looking variables:
> 
> cpu_present_map - a bit mask of physically-present CPU's
> cpu_number_map[NR_CPUS] - an array of ???
> 
> At first blush, checking for the highest bit set in cpu_present_map
> would seem to tell me how big my array needs to be, and then I'd
> just need to allocate a buffer at each position where a bit was set.
> But do those indices in fact correlate to what smp_processor_id ()
> is going to return? Or does cpu_number_map[] need to play into this
> somewhere? (And what the heck is in there anyway?)
> 
> Is there a way to peek at these things without adding code to my
> device driver? I do believe they are exported kernel symbols...

Well, with some help from the #kernelnewbies folks I have partially
answered some of these questions:

---8<---
[root@gemini /root]# grep cpu /proc/ksyms
c0255780 boot_cpu_data_Rsmp7771ef76
c02b2600 cpu_data_Rsmp440df478
c02b2560 cpu_number_map_Rsmpc48679de
c02b3700 __cpu_logica