FreeBSD/sys/dev/e1000/if_lem.c
/* Export a single 32-bit register via a read-only sysctl. */
Export a single 32-bit register via a read-only sysctl.
Export a single 32 - bit register via a read - only sysctl .
static int
lem_sysctl_reg_handler(SYSCTL_HANDLER_ARGS)
{
	struct adapter *adapter;
	u_int val;
	adapter = oidp->oid_arg1;
	val = E1000_READ_REG(&adapter->hw, oidp->oid_arg2);
	return (sysctl_handle_int(oidp, &val, 0, req));
}
static int lem_sysctl_reg_handler ( SYSCTL_HANDLER_ARGS ) { struct adapter * adapter ; u_int val ; adapter = oidp -> oid_arg1 ; val = E1000_READ_REG ( & adapter -> hw , oidp -> oid_arg2 ) ; return ( sysctl_handle_int ( oidp , & val , 0 , req ) ) ; }
Export a single 32-bit register via a read-only sysctl.
Export a single 32 - bit register via a read - only sysctl .