Re: Optional mmap(2) support for geom(4) providers

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Tue, 16 May 2006 23:30:33 +0200
In message <20060516212707.GI65555_at_funkthat.com>, John-Mark Gurney writes:
>Maxim Sobolev wrote this message on Tue, May 16, 2006 at 01:24 -0700:
>> Well, in my particular case I would like to experiment with
>> dynamic exporting of shared ELF objects from the kernel into
>> userspace. md(4) seems like a good fit, but dlopen(3) uses
>> mmap, so that it doesn't work OOB. There can be other uses
>> as well.
>
>Doing a seperate cdev that implements mmap is quite easy...
>
>For something like that it seems like you wouldn't need any of md's
>disk device features, would you?

I agree, md(4) will only get in the way of what is necessary.

Look at the adlink driver, it is much closer to what you want.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Tue May 16 2006 - 19:30:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:55 UTC