Changeset 9835790 in rtems-libbsd


Ignore:
Timestamp:
Jun 27, 2016, 11:24:03 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
9362e76
Parents:
39a650e
Message:

Enable device sysctl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/subr_bus.c

    r39a650e r9835790  
    9393#define DC_HAS_CHILDREN         1
    9494
    95 #ifndef __rtems__
    9695        struct sysctl_ctx_list sysctl_ctx;
    9796        struct sysctl_oid *sysctl_tree;
    98 #endif /* __rtems__ */
    9997};
    10098
     
    141139        void    *softc;                 /**< current driver's variables  */
    142140
    143 #ifndef __rtems__
    144141        struct sysctl_ctx_list sysctl_ctx; /**< state for sysctl variables  */
    145142        struct sysctl_oid *sysctl_tree; /**< state for sysctl variables */
    146 #endif /* __rtems__ */
    147143};
    148144
     
    202198#endif
    203199
    204 #ifndef __rtems__
    205200/*
    206201 * dev sysctl tree
     
    286281        return (error);
    287282}
    288 #endif /* __rtems__ */
    289283
    290284static void
    291285device_sysctl_init(device_t dev)
    292286{
    293 #ifndef __rtems__
    294287        devclass_t dc = dev->devclass;
    295288
     
    322315            dev, DEVICE_SYSCTL_PARENT, device_sysctl_handler, "A",
    323316            "parent device");
    324 #endif /* __rtems__ */
    325317}
    326318
     
    340332device_sysctl_fini(device_t dev)
    341333{
    342 #ifndef __rtems__
    343334        if (dev->sysctl_tree == NULL)
    344335                return;
    345336        sysctl_ctx_free(&dev->sysctl_ctx);
    346337        dev->sysctl_tree = NULL;
    347 #endif /* __rtems__ */
    348338}
    349339
     
    15461536devclass_get_sysctl_ctx(devclass_t dc)
    15471537{
    1548 #ifndef __rtems__
    15491538        return (&dc->sysctl_ctx);
    1550 #else /* __rtems__ */
    1551         return (NULL);
    1552 #endif /* __rtems__ */
    15531539}
    15541540
     
    23282314device_get_sysctl_ctx(device_t dev)
    23292315{
    2330 #ifndef __rtems__
    23312316        return (&dev->sysctl_ctx);
    2332 #else /* __rtems__ */
    2333         return (NULL);
    2334 #endif /* __rtems__ */
    23352317}
    23362318
     
    23382320device_get_sysctl_tree(device_t dev)
    23392321{
    2340 #ifndef __rtems__
    23412322        return (dev->sysctl_tree);
    2342 #else /* __rtems__ */
    2343         return (NULL);
    2344 #endif /* __rtems__ */
    23452323}
    23462324
Note: See TracChangeset for help on using the changeset viewer.