Lines Matching refs:hugepage_kobj
409 static int __init hugepage_init_sysfs(struct kobject **hugepage_kobj) in hugepage_init_sysfs() argument
413 *hugepage_kobj = kobject_create_and_add("transparent_hugepage", mm_kobj); in hugepage_init_sysfs()
414 if (unlikely(!*hugepage_kobj)) { in hugepage_init_sysfs()
419 err = sysfs_create_group(*hugepage_kobj, &hugepage_attr_group); in hugepage_init_sysfs()
425 err = sysfs_create_group(*hugepage_kobj, &khugepaged_attr_group); in hugepage_init_sysfs()
434 sysfs_remove_group(*hugepage_kobj, &hugepage_attr_group); in hugepage_init_sysfs()
436 kobject_put(*hugepage_kobj); in hugepage_init_sysfs()
440 static void __init hugepage_exit_sysfs(struct kobject *hugepage_kobj) in hugepage_exit_sysfs() argument
442 sysfs_remove_group(hugepage_kobj, &khugepaged_attr_group); in hugepage_exit_sysfs()
443 sysfs_remove_group(hugepage_kobj, &hugepage_attr_group); in hugepage_exit_sysfs()
444 kobject_put(hugepage_kobj); in hugepage_exit_sysfs()
447 static inline int hugepage_init_sysfs(struct kobject **hugepage_kobj) in hugepage_init_sysfs() argument
452 static inline void hugepage_exit_sysfs(struct kobject *hugepage_kobj) in hugepage_exit_sysfs() argument
460 struct kobject *hugepage_kobj; in hugepage_init() local
477 err = hugepage_init_sysfs(&hugepage_kobj); in hugepage_init()
514 hugepage_exit_sysfs(hugepage_kobj); in hugepage_init()