Chinaunix首页 | 论坛 | 博客
  • 博客访问: 50638
  • 博文数量: 15
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 180
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-31 11:18
文章分类
文章存档

2010年(14)

2009年(1)

我的朋友

分类: LINUX

2010-03-23 21:11:01

/*
 * Some day this will be a full-fledged user tracking system..
 */
struct user_struct {
    atomic_t __count;    /* reference count */
    atomic_t processes;    /* How many processes does this user have? */
    atomic_t files;        /* How many open files does this user have? */
    atomic_t sigpending;    /* How many pending signals does this user have? */
#ifdef CONFIG_INOTIFY_USER
    atomic_t inotify_watches; /* How many inotify watches does this user have? */
    atomic_t inotify_devs;    /* How many inotify devs does this user have opened? */
#endif
#ifdef CONFIG_EPOLL
    atomic_t epoll_watches;    /* The number of file descriptors currently watched */
#endif
#ifdef CONFIG_POSIX_MQUEUE
    /* protected by mq_lock    */
    unsigned long mq_bytes;    /* How many bytes can be allocated to mqueue? */
#endif
    unsigned long locked_shm; /* How many pages of mlocked shm ? */

#ifdef CONFIG_KEYS
    struct key *uid_keyring;    /* UID specific keyring */
    struct key *session_keyring;    /* UID's default session keyring */
#endif

    /* Hash table maintenance information */
    struct hlist_node uidhash_node;
    uid_t uid;
    struct user_namespace *user_ns;

#ifdef CONFIG_USER_SCHED
    struct task_group *tg;
#ifdef CONFIG_SYSFS
    struct kobject kobj;
    struct delayed_work work;
#endif
#endif

#ifdef CONFIG_PERF_EVENTS
    atomic_long_t locked_vm;
#endif
};
阅读(1357) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~