env()->rm_session()->attach

Norman Feske norman.feske at ...1...
Tue Jul 9 20:10:37 CEST 2013


Hi Daniel,

> Whats the limitation on how much a process can
> env()->rm_session()->attach(...)?

there is no limit. Core accounts all meta data it needs from the RAM
quota that the client attributed to the RM session. By default, that is
64 KiB, see 'base/include/rm_session/connection.h'. If that quota
becomes too scarce, the 'attach' function will raise an
'Out_of_metadata' exception. The client can resolve this condition by
upgrading the RAM quota for the session using 'parent()->upgrade()'. For
'env()->rm_session()', this procedure is performed automatically by the
'Expanding_rm_session_client' class defined in
'base/src/base/env/platform_env.h'.

> Is this a thread-safe API?

Yes.

Cheers
Norman

-- 
Dr.-Ing. Norman Feske
Genode Labs

http://www.genode-labs.com · http://genode.org

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth




More information about the users mailing list