Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1588 → Rev 1589

/kernel/trunk/generic/src/ddi/ddi.c
75,7 → 75,6
return EPERM;
 
ipl = interrupts_disable();
/* Lock the task and release the lock protecting tasks_btree. */
spinlock_lock(&TASK->lock);
if (!as_area_create(TASK->as, flags, pages * PAGE_SIZE, vp, AS_AREA_ATTR_NONE,
/kernel/trunk/generic/src/proc/task.c
238,6 → 238,11
* The tasks_lock must be already held by the caller of this function
* and interrupts must be disabled.
*
* The task is guaranteed to exist after it was found in the tasks_btree as long as:
* @li the tasks_lock is held,
* @li the task's lock is held when task's lock is acquired before releasing tasks_lock or
* @li the task's refcount is grater than 0
*
* @param id Task ID.
*
* @return Task structure address or NULL if there is no such task ID.
/kernel/trunk/generic/src/proc/thread.c
548,6 → 548,9
* Note that threads_lock must be already held and
* interrupts must be already disabled.
*
* When a thread is found in threads_btree, it is guaranteed to exist as long
* as the threads_lock is held.
*
* @param t Pointer to thread.
*
* @return True if thread t is known to the system, false otherwise.