View Single Post

   
  #6 (permalink)  
Old 01-16-2008, 06:50 PM
Dan Koren
 
Posts: n/a
Default Re: Self-initializing shared library?

"Chris Gerhard" <Chris.Gerhard@remove_this.sun.com> wrote in message
news:ctqd3p$pq8$1@new-usenet.uk.sun.com...
> Dan Koren wrote:
> > "Dan Koren" <dankoren@yahoo.com> wrote in message
> > news:4200b449$1@news.meer.net...
> >
> >
> > I should have perhaps clarified that this would be used
> > as a system wide library to be loaded shortly after boot.
> > Think of it as a system wide LD_PRELOAD.

>
> Libraries only get loaded by processes and not by the system.
> If the library needed some shared per system resource, like a
> shared memory segment, it would have to be loaded by a process
> that then creates the resource. That process could be started
> early in the boot via smf.
>



Thanks for the clarification. Unfortunately, this is not what
I am looking for. I need the ability to load a shared library
*before* any user processes start running.

I suppose I will have to write a driver to accomplish this.


dk


Reply With Quote