Re: address space problem on dynamically linked libs

From: Kasper Dupont (kasperd_at_daimi.au.dk)
Date: 05/15/04


Date: Sat, 15 May 2004 07:52:53 +0200

Dave wrote:
>
> Hi, there
> Got a weird problem on dlls under unix/linux
>
> Say I have a the following codes in my kernel:
> namespace name_space{
> class_name& get_object() {
> static class_name object_of_the_class;
> return object_of_the_class;
> }
> }

That is not C code. The kernel is written in C.

>
> Then in the dll *.so file, I have the following codes:
> a_object = name_space::get_object()

So this is userspace code right. It has got to be
because .so files are not used for kernel code.

>
> Also in more than once place in my kernel, I have similar codes as:
> b_object = name_space::get_object()

Again there is something wrong with the language.
You may use that language for user space code, but
not for kernel code.

>
> Could any one points out why and how to make both dll *so and kernel
> refer
> to the same objects?

That is impossible. What are you trying to do?
Communication between kernel code and user code must
be done through system calls.

FUT: cold.system

-- 
Kasper Dupont -- der bruger for meget tid paa usenet.
For sending spam use abuse@mk.lir.dk and kasperd@mk.lir.dk
I'd rather be a hammer than a nail.


Relevant Pages

  • Re: Windows CE .net
    ... > Are all .net machines coming without these already installed? ... >> Are you building your application and uploading it as a Windows CE ... >> kernel or is the application developed by somebody else and you hoped ... DLLs for a wide variety of applications. ...
    (microsoft.public.vc.mfc)
  • Re: kernel XIP DLL
    ... These would be dlls that have in the MODULES section of the bib files that ... Bruce.Eitman AT EuroTech DOT com ... executed in "Kernel XIP dLLs" space in Windows CE 6.0. ...
    (microsoft.public.windowsce.platbuilder)
  • XP-Home startet nicht mehr
    ... Ladeprogramm benötigt DLLs für Kernel. ... Bitte wenden Sie sich an Ihren Supportansprechpartner, ...
    (microsoft.public.de.german.windowsxp.sonstiges)
  • Re: komische Fehlermeldungen
    ... Windows konnte wegen eines Softwarefehlers nicht gestartet ... Ladeprogramm benötigt DLLs für Kernel ...
    (microsoft.public.de.german.windowsxp.setup)
  • Re: address space problem on dynamically linked libs
    ... The kernel is written in C. ... > Again there is something wrong with the language. ... > Communication between kernel code and user code must ...
    (comp.os.linux.misc)