lkml.org 
[lkml]   [2009]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Why current->uid is not working in 2.6.29 ?
Kunsheng Chen wrote:
> Hello everyone,
>
> I am new to kernel module programming and got some problem while compiling some old kernel code.
>
> The
> code is trying to get user id using current->uid, but it is not
> working by reminding me 'task_struct; doesn't contain field uid '.
>
> I checked the linux source code , uid is not there any more.
>
They were replaced by some other calls. For example the following is a
snippet which ports the old code to the new API:

- address, current->uid);
+ address, current_uid());


The commit 1330deb0f6e89525c8e9fcbd6b13522c9243bfc0 is a good example of
what are the new replacements.

This is all that I know,

Ozan Caglayan


\
 
 \ /
  Last update: 2009-05-23 11:19    [W:0.043 / U:0.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site