[openib-general] http://openib.org/downloads/

Timur Tabi timur.tabi at ammasso.com
Wed Mar 9 09:56:23 PST 2005


Roland Dreier wrote:
>     Timur> I see that function ibv_lock_range() in libibverbs calls
>     Timur> the mlock() system call. mlock() can only be called by a
>     Timur> process that has root privileges.  Does this mean the
>     Timur> user-space verbs support is only available to applications
>     Timur> that run as root?
> 
> Actually this isn't true.  Any process can call mlock() (try it and see).

Since when?

man mlock:

ERRORS

        EPERM  The  calling  process does not have appropriate
               privileges. Only root processes are allowed to lock pages.

-- 
Timur Tabi
Staff Software Engineer
timur.tabi at ammasso.com



More information about the general mailing list