150465Smarcel/*- 250465Smarcel * Copyright (c) 1999 Marcel Moolenaar 350465Smarcel * All rights reserved. 450465Smarcel * 550465Smarcel * Redistribution and use in source and binary forms, with or without 650465Smarcel * modification, are permitted provided that the following conditions 750465Smarcel * are met: 850465Smarcel * 1. Redistributions of source code must retain the above copyright 950465Smarcel * notice, this list of conditions and the following disclaimer 1050465Smarcel * in this position and unchanged. 1150465Smarcel * 2. Redistributions in binary form must reproduce the above copyright 1250465Smarcel * notice, this list of conditions and the following disclaimer in the 1350465Smarcel * documentation and/or other materials provided with the distribution. 1450465Smarcel * 3. The name of the author may not be used to endorse or promote products 1565067Smarcel * derived from this software without specific prior written permission. 1650465Smarcel * 1750465Smarcel * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1850465Smarcel * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1950465Smarcel * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2050465Smarcel * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2150465Smarcel * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2250465Smarcel * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2350465Smarcel * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2450465Smarcel * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2550465Smarcel * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2650465Smarcel * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2750465Smarcel * 2850480Speter * $FreeBSD: releng/10.2/sys/compat/linux/linux_mib.h 219668 2011-03-15 13:40:47Z netchild $ 2950465Smarcel */ 3050465Smarcel 3150465Smarcel#ifndef _LINUX_MIB_H_ 3250465Smarcel#define _LINUX_MIB_H_ 3350465Smarcel 34191896Sjamievoid linux_osd_jail_register(void); 35191896Sjamievoid linux_osd_jail_deregister(void); 36191896Sjamie 37112206Sjhbvoid linux_get_osname(struct thread *td, char *dst); 3850465Smarcel 39112206Sjhbvoid linux_get_osrelease(struct thread *td, char *dst); 4050465Smarcel 41112206Sjhbint linux_get_oss_version(struct thread *td); 4250465Smarcel 43191972Sdchaginint linux_kernver(struct thread *td); 44165687Snetchild 45191973Sdchagin#define LINUX_KERNVER_2004000 2004000 46191972Sdchagin#define LINUX_KERNVER_2006000 2006000 47191972Sdchagin 48191972Sdchagin#define linux_use26(t) (linux_kernver(t) >= LINUX_KERNVER_2006000) 49191972Sdchagin 5050465Smarcel#endif /* _LINUX_MIB_H_ */ 51