Lines Matching refs:hugepage_kobj
335 static int __init hugepage_init_sysfs(struct kobject **hugepage_kobj) in hugepage_init_sysfs() argument
339 *hugepage_kobj = kobject_create_and_add("transparent_hugepage", mm_kobj); in hugepage_init_sysfs()
340 if (unlikely(!*hugepage_kobj)) { in hugepage_init_sysfs()
345 err = sysfs_create_group(*hugepage_kobj, &hugepage_attr_group); in hugepage_init_sysfs()
351 err = sysfs_create_group(*hugepage_kobj, &khugepaged_attr_group); in hugepage_init_sysfs()
360 sysfs_remove_group(*hugepage_kobj, &hugepage_attr_group); in hugepage_init_sysfs()
362 kobject_put(*hugepage_kobj); in hugepage_init_sysfs()
366 static void __init hugepage_exit_sysfs(struct kobject *hugepage_kobj) in hugepage_exit_sysfs() argument
368 sysfs_remove_group(hugepage_kobj, &khugepaged_attr_group); in hugepage_exit_sysfs()
369 sysfs_remove_group(hugepage_kobj, &hugepage_attr_group); in hugepage_exit_sysfs()
370 kobject_put(hugepage_kobj); in hugepage_exit_sysfs()
373 static inline int hugepage_init_sysfs(struct kobject **hugepage_kobj) in hugepage_init_sysfs() argument
378 static inline void hugepage_exit_sysfs(struct kobject *hugepage_kobj) in hugepage_exit_sysfs() argument
386 struct kobject *hugepage_kobj; in hugepage_init() local
403 err = hugepage_init_sysfs(&hugepage_kobj); in hugepage_init()
440 hugepage_exit_sysfs(hugepage_kobj); in hugepage_init()