Lines Matching refs:hugepage_kobj
572 static int __init hugepage_init_sysfs(struct kobject **hugepage_kobj) in hugepage_init_sysfs() argument
576 *hugepage_kobj = kobject_create_and_add("transparent_hugepage", mm_kobj); in hugepage_init_sysfs()
577 if (unlikely(!*hugepage_kobj)) { in hugepage_init_sysfs()
582 err = sysfs_create_group(*hugepage_kobj, &hugepage_attr_group); in hugepage_init_sysfs()
588 err = sysfs_create_group(*hugepage_kobj, &khugepaged_attr_group); in hugepage_init_sysfs()
597 sysfs_remove_group(*hugepage_kobj, &hugepage_attr_group); in hugepage_init_sysfs()
599 kobject_put(*hugepage_kobj); in hugepage_init_sysfs()
603 static void __init hugepage_exit_sysfs(struct kobject *hugepage_kobj) in hugepage_exit_sysfs() argument
605 sysfs_remove_group(hugepage_kobj, &khugepaged_attr_group); in hugepage_exit_sysfs()
606 sysfs_remove_group(hugepage_kobj, &hugepage_attr_group); in hugepage_exit_sysfs()
607 kobject_put(hugepage_kobj); in hugepage_exit_sysfs()
610 static inline int hugepage_init_sysfs(struct kobject **hugepage_kobj) in hugepage_init_sysfs() argument
615 static inline void hugepage_exit_sysfs(struct kobject *hugepage_kobj) in hugepage_exit_sysfs() argument
623 struct kobject *hugepage_kobj; in hugepage_init() local
630 err = hugepage_init_sysfs(&hugepage_kobj); in hugepage_init()
662 hugepage_exit_sysfs(hugepage_kobj); in hugepage_init()