/* @cont: The container to register. This must be allocated by the callee and should also be zeroed by it.  */
int attribute_container_register(struct attribute_container *cont)
/* @cont: The container to register. This must be allocated by the callee and should also be zeroed by it.  */
int attribute_container_register(struct attribute_container *cont)
{
	INIT_LIST_HEAD(&cont->node);
	klist_init(&cont->containers,internal_container_klist_get,
		   internal_container_klist_put);
	mutex_lock(&attribute_container_mutex);
	list_add_tail(&cont->node, &attribute_container_list);
	mutex_unlock(&attribute_container_mutex);
	return 0;
}