@@ -1440,10 +1440,10 @@ void __init cpuset_init_smp(void)
14401440
14411441/**
14421442 * cpuset_fork - attach newly forked task to its parents cpuset.
1443- * @p : pointer to task_struct of forking parent process.
1443+ * @tsk : pointer to task_struct of forking parent process.
14441444 *
14451445 * Description: By default, on fork, a task inherits its
1446- * parents cpuset. The pointer to the shared cpuset is
1446+ * parent's cpuset. The pointer to the shared cpuset is
14471447 * automatically copied in fork.c by dup_task_struct().
14481448 * This cpuset_fork() routine need only increment the usage
14491449 * counter in that cpuset.
@@ -1471,7 +1471,6 @@ void cpuset_fork(struct task_struct *tsk)
14711471 * by the cpuset_sem semaphore. If you don't hold cpuset_sem,
14721472 * then a zero cpuset use count is a license to any other task to
14731473 * nuke the cpuset immediately.
1474- *
14751474 **/
14761475
14771476void cpuset_exit (struct task_struct * tsk )
@@ -1521,7 +1520,9 @@ void cpuset_init_current_mems_allowed(void)
15211520 current -> mems_allowed = NODE_MASK_ALL ;
15221521}
15231522
1524- /*
1523+ /**
1524+ * cpuset_update_current_mems_allowed - update mems parameters to new values
1525+ *
15251526 * If the current tasks cpusets mems_allowed changed behind our backs,
15261527 * update current->mems_allowed and mems_generation to the new value.
15271528 * Do not call this routine if in_interrupt().
@@ -1540,13 +1541,20 @@ void cpuset_update_current_mems_allowed(void)
15401541 }
15411542}
15421543
1544+ /**
1545+ * cpuset_restrict_to_mems_allowed - limit nodes to current mems_allowed
1546+ * @nodes: pointer to a node bitmap that is and-ed with mems_allowed
1547+ */
15431548void cpuset_restrict_to_mems_allowed (unsigned long * nodes )
15441549{
15451550 bitmap_and (nodes , nodes , nodes_addr (current -> mems_allowed ),
15461551 MAX_NUMNODES );
15471552}
15481553
1549- /*
1554+ /**
1555+ * cpuset_zonelist_valid_mems_allowed - check zonelist vs. curremt mems_allowed
1556+ * @zl: the zonelist to be checked
1557+ *
15501558 * Are any of the nodes on zonelist zl allowed in current->mems_allowed?
15511559 */
15521560int cpuset_zonelist_valid_mems_allowed (struct zonelist * zl )
@@ -1562,8 +1570,12 @@ int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl)
15621570 return 0 ;
15631571}
15641572
1565- /*
1566- * Is 'current' valid, and is zone z allowed in current->mems_allowed?
1573+ /**
1574+ * cpuset_zone_allowed - is zone z allowed in current->mems_allowed
1575+ * @z: zone in question
1576+ *
1577+ * Is zone z allowed in current->mems_allowed, or is
1578+ * the CPU in interrupt context? (zone is always allowed in this case)
15671579 */
15681580int cpuset_zone_allowed (struct zone * z )
15691581{
0 commit comments