The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/config/kernel-sysfs.m4

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 dnl #
    2 dnl # Linux 5.2/5.18 API
    3 dnl #
    4 dnl # In cdb4f26a63c391317e335e6e683a614358e70aeb ("kobject: kobj_type: remove default_attrs")
    5 dnl #   struct kobj_type.default_attrs
    6 dnl # was finally removed in favour of
    7 dnl #   struct kobj_type.default_groups
    8 dnl #
    9 dnl # This was added in aa30f47cf666111f6bbfd15f290a27e8a7b9d854 ("kobject: Add support for default attribute groups to kobj_type"),
   10 dnl # if both are present (5.2-5.17), we prefer default_groups; they're otherwise equivalent
   11 dnl #
   12 AC_DEFUN([ZFS_AC_KERNEL_SRC_SYSFS_DEFAULT_GROUPS], [
   13         ZFS_LINUX_TEST_SRC([sysfs_default_groups], [
   14                 #include <linux/kobject.h>
   15         ],[
   16                 struct kobj_type __attribute__ ((unused)) kt = {
   17                         .default_groups = (const struct attribute_group **)NULL };
   18         ])
   19 ])
   20 
   21 AC_DEFUN([ZFS_AC_KERNEL_SYSFS_DEFAULT_GROUPS], [
   22         AC_MSG_CHECKING([whether struct kobj_type.default_groups exists])
   23         ZFS_LINUX_TEST_RESULT([sysfs_default_groups],[
   24                 AC_MSG_RESULT(yes)
   25                 AC_DEFINE([HAVE_SYSFS_DEFAULT_GROUPS], 1, [struct kobj_type has default_groups])
   26         ],[
   27                 AC_MSG_RESULT(no)
   28         ])
   29 ])
   30 
   31 AC_DEFUN([ZFS_AC_KERNEL_SRC_SYSFS], [
   32         ZFS_AC_KERNEL_SRC_SYSFS_DEFAULT_GROUPS
   33 ])
   34 
   35 AC_DEFUN([ZFS_AC_KERNEL_SYSFS], [
   36         ZFS_AC_KERNEL_SYSFS_DEFAULT_GROUPS
   37 ])

Cache object: 4c64d8948bca1525fa0f4559ecff24d3


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.