Re: address space problem on dynamically linked libs
From: Kasper Dupont (kasperd_at_daimi.au.dk)
Date: 05/15/04
- Next message: Timo Salmi: "Re: Alan Connor (spammer): possible AUP violations?"
- Previous message: Dave: "address space problem on dynamically linked libs"
- In reply to: Dave: "address space problem on dynamically linked libs"
- Next in thread: Dave: "Re: address space problem on dynamically linked libs"
- Reply: Dave: "Re: address space problem on dynamically linked libs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Timo Salmi: "Re: Alan Connor (spammer): possible AUP violations?"
- Previous message: Dave: "address space problem on dynamically linked libs"
- In reply to: Dave: "address space problem on dynamically linked libs"
- Next in thread: Dave: "Re: address space problem on dynamically linked libs"
- Reply: Dave: "Re: address space problem on dynamically linked libs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|