load dynamic and shared library in kernel


 
Thread Tools Search this Thread
Operating Systems Linux load dynamic and shared library in kernel
# 1  
Old 08-01-2005
load dynamic and shared library in kernel

hi

how can i load dynamic or shared library in linux kernel modules .

mtaghiloo@yahoo.com
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Add shared members from library to same library in a different directory

I'm trying to install libiconv to AIX 7.1 from an rpm off of the perzl site. The rpm appears to install but I get this error message. add shr4.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a add shr.o shared members from /usr/lib/libiconv.a to ... (5 Replies)
Discussion started by: kneemoe
5 Replies

2. Programming

Shared library with acces to shared memory.

Hello. I am new to this forum and I would like to ask for advice about low level POSIX programming. I have to implement a POSIX compliant C shared library. A file will have some variables and the shared library will have some functions which need those variables. There is one special... (5 Replies)
Discussion started by: iamjag
5 Replies

3. Programming

Dynamic library load with dlopen

Hi, I created two library libsum.so and libproduct.so. In the libproduct.so is defined function "product" that use function "sum" defined in libsum.so. So libproduct depends on libsum. In main function I called product function by a dlopen request. Unfortunaly, when I execute program I have an... (5 Replies)
Discussion started by: shade82
5 Replies

4. UNIX for Dummies Questions & Answers

Problem with shared dynamic library files

I am having a major problem. Most of the commands that i am running on my centos 5 system is giving the error of type: <dynamic shared library file>:open failed: No such file or directory For example: libgcc_s.so.1: open failed: No such file or directory How can i solve this? (6 Replies)
Discussion started by: proactiveaditya
6 Replies

5. UNIX for Dummies Questions & Answers

How to obtain list of object files in a shared (dynamic) library?

How can I simply obtain a list of the object files in a shared (dynamic) library. I am looking for the equivalent of "ar -t <lib>" for archived (static) libraries. Thanks in advance. :rolleyes: ---------- Post updated at 01:47 PM ---------- Previous update was at 12:16 PM ---------- The... (1 Reply)
Discussion started by: chatieremerrill
1 Replies

6. Shell Programming and Scripting

How to change a Makefile from building static library to shared library?

Hi: I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library) Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies

7. Programming

Shared memory for shared library

I am writing a shared library in Linux (but compatible with other UNIXes) and I want to allow multiple instances to share a piece of memory -- 1 byte is enough. What's the "best" way to do this? I want to optimize for speed and portability. Obviously, I'll have to worry about mutual exclusion. (0 Replies)
Discussion started by: otheus
0 Replies

8. Programming

Shared memory in shared library

I need to create a shared library to access an in memory DB. The DB is not huge, but big enough to make it cumbersome to carry around in every single process using the shared library. Luckily, it is pretty static information, so I don't need to worry much about synchronizing the data between... (12 Replies)
Discussion started by: DreamWarrior
12 Replies

9. Linux

load error while creating shared library

Hi, I am trying to create shared library. When i run the script to build the library i get these errors ld: warning: option -o appears more than once, first setting taken ld: fatal: file libgc.so.0: open failed: No such file or directory ld: fatal: File processing errors. No output written... (0 Replies)
Discussion started by: masg1
0 Replies

10. Programming

how to auto load a dynamic library

hi, every body. i have in trouble that how to load a dynamic library by hand. for example, i know how to generate a dynamic library and how to link a dynamic library in makefile. generate a dynamic library: add -dy -G behind cc link a dynamic library in makefile: add -dy -Bdynamic behind cc... (0 Replies)
Discussion started by: subrain
0 Replies
Login or Register to Ask a Question
dlget(3C)																 dlget(3C)

NAME
dlget() - retrieve information about a loaded module (program or shared library) SYNOPSIS
[flag]... file... [library]... Multithread Usage This routine is thread-safe. DESCRIPTION
is one of a family of routines that give the user direct access to the dynamic linking facilities. returns information about a loaded mod- ule for a process. retrieves information about a load module from an index specifying the placement of the load module in the dynamic loader's search list. An index of requests information about the dynamic loader. An index of requests information about the program file itself. If successful, returns a handle for the shared library as defined by the return value from desc must be preallocated by the user. The structure members are filled in by the dynamic loader with information about the requested shared library. A load_module_desc structure has the following members: struct load_module_desc { unsigned long text_base; unsigned long text_size; unsigned long data_base; unsigned long data_size; unsigned long unwind_base; unsigned long linkage_ptr; unsigned long phdr_base; unsigned long tls_size; unsigned long tls_start_addr; } desc_size specifies the size in bytes of the load_module_desc structure sent in by the user. If a call to is unsuccessful, a NULL pointer is returned and desc remains unchanged. ERRORS
If fails, a subsequent call to returns one of the following values: Cannot apply relocation in library. Invalid descriptor argument. Invalid descriptor version. Invalid load module index. Out of memory. failed on entry to or exit from failed on exit from failed on entry to AUTHOR
was developed by HP. SEE ALSO
System Tools exec(2) System loader. ld(1) Invokes the link editor. Miscellaneous a.out(4) Assembler, compiler, and linker output. dlclose(3C) Unloads a shared library previously loaded by dlerror(3C) Prints the last error message recorded by dlerrno(3C) Returns an error code for the last error recorded by dlgetname(3C) Returns the name of the storage containing a load module. dlmodinfo(3C) Returns information about a loaded module. dlopen(3C) Loads a shared library. dlsym(3C) Gets the address of a symbol in a shared library. Texts and Tutorials (See the option) (See manuals(5) for ordering information) ELF Applications Only dlget(3C)