Searched refs:undo_list (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/include/linux/
H A Dsem.h29 struct sem_undo_list *undo_list; member in struct:sysv_sem
/linux-4.4.14/kernel/
H A Dkcmp.c161 ret = kcmp_ptr(task1->sysvsem.undo_list, SYSCALL_DEFINE5()
162 task2->sysvsem.undo_list, SYSCALL_DEFINE5()
/linux-4.4.14/ipc/
H A Dsem.c1622 /* If the task doesn't already have a undo_list, then allocate one
1635 struct sem_undo_list *undo_list; get_undo_list() local
1637 undo_list = current->sysvsem.undo_list; get_undo_list()
1638 if (!undo_list) { get_undo_list()
1639 undo_list = kzalloc(sizeof(*undo_list), GFP_KERNEL); get_undo_list()
1640 if (undo_list == NULL) get_undo_list()
1642 spin_lock_init(&undo_list->lock); get_undo_list()
1643 atomic_set(&undo_list->refcnt, 1); get_undo_list()
1644 INIT_LIST_HEAD(&undo_list->list_proc); get_undo_list()
1646 current->sysvsem.undo_list = undo_list; get_undo_list()
1648 *undo_listp = undo_list; get_undo_list()
2039 struct sem_undo_list *undo_list; copy_semundo() local
2043 error = get_undo_list(&undo_list); copy_semundo()
2046 atomic_inc(&undo_list->refcnt); copy_semundo()
2047 tsk->sysvsem.undo_list = undo_list; copy_semundo()
2049 tsk->sysvsem.undo_list = NULL; copy_semundo()
2070 ulp = tsk->sysvsem.undo_list; exit_sem()
2073 tsk->sysvsem.undo_list = NULL; exit_sem()

Completed in 103 milliseconds