Index Index for
Section 3
Index Alphabetical
listing for L
Bottom of page Bottom of
page

ldr_xattach(3)

NAME

ldr_xattach - Attache to another process to permit loading/unloading of modules in that process' address space

SYNOPSIS

#include <sys/types.h> #include <loader.h> int ldr_xattach( ldr_process_t process );

LIBRARY

Standard C Library (libc)

PARAMETERS

process Specifies the process to attach to.

DESCRIPTION

The ldr_xattach() function is used to permit a process to load, unload, query, or retrieve the contents of another process' address space.

NOTES

This function currently works only for the current process or the kernel.

RETURN VALUES

If the attach operation is a success, the function returns a code of 0 (zero). If the attach fails, the function returns a negative error value and errno is set to indicate the error.

ERRORS

If the ldr_xattach() function fails, errno may be set to the following value: [EINVAL] The process identified is nonshared and does not support loader operations. [ESRCH] The process identifier is invalid. Additional errors are possible from the underlying IPC mechanism.

SEE ALSO

Functions: ldr_xdetach(3)

Index Index for
Section 3
Index Alphabetical
listing for L
Top of page Top of
page