mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	cpuset: Add package comment
Describe use cases (node IDs, HT siblings, etc) Call out novelty (Linux CPU list parse/dump) Describe future work (relax immutable, refactor to use 'set')
This commit is contained in:
		@@ -14,6 +14,15 @@ See the License for the specific language governing permissions and
 | 
				
			|||||||
limitations under the License.
 | 
					limitations under the License.
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Package cpuset represents a collection of CPUs in a 'set' data structure.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// It can be used to represent core IDs, hyper thread siblings, CPU nodes, or processor IDs.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// The only special thing about this package is that
 | 
				
			||||||
 | 
					// methods are provided to convert back and forth from Linux 'list' syntax.
 | 
				
			||||||
 | 
					// See http://man7.org/linux/man-pages/man7/cpuset.7.html#FORMATS for details.
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// Future work can migrate this to use a 'set' library, and relax the dubious 'immutable' property.
 | 
				
			||||||
package cpuset
 | 
					package cpuset
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user