Print this page
8627 want ddi_ffsll, ddi_flsll
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>


1568 ddi_create_priv_minor_node(dev_info_t *dip, char *name, int spec_type,
1569     minor_t minor_num, char *node_type, int flag,
1570     const char *rdpriv, const char *wrpriv, mode_t priv_mode);
1571 
1572 void
1573 ddi_remove_minor_node(dev_info_t *dip, char *name);
1574 
1575 int
1576 ddi_in_panic(void);
1577 
1578 int
1579 ddi_streams_driver(dev_info_t *dip);
1580 
1581 /*
1582  * DDI wrappers for ffs and fls
1583  */
1584 int
1585 ddi_ffs(long mask);
1586 
1587 int



1588 ddi_fls(long mask);
1589 



1590 /*
1591  * The ddi_soft_state* routines comprise generic storage management utilities
1592  * for driver soft state structures.  Two types of soft_state indexes are
1593  * supported: 'integer index', and 'string index'.
1594  */
1595 typedef struct __ddi_soft_state_bystr   ddi_soft_state_bystr;
1596 
1597 /*
1598  * Initialize a soft_state set, establishing the 'size' of soft state objects
1599  * in the set.
1600  *
1601  * For an 'integer indexed' soft_state set, the initial set will accommodate
1602  * 'n_items' objects - 'n_items' is a hint (i.e. zero is allowed), allocations
1603  * that exceed 'n_items' have additional overhead.
1604  *
1605  * For a 'string indexed' soft_state set, 'n_items' should be the typical
1606  * number of soft state objects in the set - 'n_items' is a hint, there may
1607  * be additional overhead if the hint is too small (and wasted memory if the
1608  * hint is too big).
1609  */




1568 ddi_create_priv_minor_node(dev_info_t *dip, char *name, int spec_type,
1569     minor_t minor_num, char *node_type, int flag,
1570     const char *rdpriv, const char *wrpriv, mode_t priv_mode);
1571 
1572 void
1573 ddi_remove_minor_node(dev_info_t *dip, char *name);
1574 
1575 int
1576 ddi_in_panic(void);
1577 
1578 int
1579 ddi_streams_driver(dev_info_t *dip);
1580 
1581 /*
1582  * DDI wrappers for ffs and fls
1583  */
1584 int
1585 ddi_ffs(long mask);
1586 
1587 int
1588 ddi_ffsll(long long mask);
1589 
1590 int
1591 ddi_fls(long mask);
1592 
1593 int
1594 ddi_flsll(long long mask);
1595 
1596 /*
1597  * The ddi_soft_state* routines comprise generic storage management utilities
1598  * for driver soft state structures.  Two types of soft_state indexes are
1599  * supported: 'integer index', and 'string index'.
1600  */
1601 typedef struct __ddi_soft_state_bystr   ddi_soft_state_bystr;
1602 
1603 /*
1604  * Initialize a soft_state set, establishing the 'size' of soft state objects
1605  * in the set.
1606  *
1607  * For an 'integer indexed' soft_state set, the initial set will accommodate
1608  * 'n_items' objects - 'n_items' is a hint (i.e. zero is allowed), allocations
1609  * that exceed 'n_items' have additional overhead.
1610  *
1611  * For a 'string indexed' soft_state set, 'n_items' should be the typical
1612  * number of soft state objects in the set - 'n_items' is a hint, there may
1613  * be additional overhead if the hint is too small (and wasted memory if the
1614  * hint is too big).
1615  */