Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178762
b: refs/heads/master
c: 3e10e71
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby committed Jan 4, 2010
1 parent 06f8843 commit c5c0702
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96d07d211739fd2450ac54e81d00fa40fcd4b1bd
refs/heads/master: 3e10e716abf3c71bdb5d86b8f507f9e72236c9cd
22 changes: 22 additions & 0 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -2601,6 +2601,28 @@ static inline void mm_init_owner(struct mm_struct *mm, struct task_struct *p)
}
#endif /* CONFIG_MM_OWNER */

static inline unsigned long task_rlimit(const struct task_struct *tsk,
unsigned int limit)
{
return ACCESS_ONCE(tsk->signal->rlim[limit].rlim_cur);
}

static inline unsigned long task_rlimit_max(const struct task_struct *tsk,
unsigned int limit)
{
return ACCESS_ONCE(tsk->signal->rlim[limit].rlim_max);
}

static inline unsigned long rlimit(unsigned int limit)
{
return task_rlimit(current, limit);
}

static inline unsigned long rlimit_max(unsigned int limit)
{
return task_rlimit_max(current, limit);
}

#endif /* __KERNEL__ */

#endif

0 comments on commit c5c0702

Please sign in to comment.