[openib-general] http://openib.org/downloads/
Bill Strahm
bill at strahm.net
Wed Mar 9 10:11:17 PST 2005
Timur Tabi wrote:
> 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.
>
Well, you can CALL it, it just returns an expected error code.
Bill
More information about the general
mailing list