linux_mib.h revision 191973
1101099Srwatson/*- 2126097Srwatson * Copyright (c) 1999 Marcel Moolenaar 3132232Srwatson * All rights reserved. 4101099Srwatson * 5101099Srwatson * Redistribution and use in source and binary forms, with or without 6101099Srwatson * modification, are permitted provided that the following conditions 7101099Srwatson * are met: 8106393Srwatson * 1. Redistributions of source code must retain the above copyright 9106393Srwatson * notice, this list of conditions and the following disclaimer 10106393Srwatson * in this position and unchanged. 11106393Srwatson * 2. Redistributions in binary form must reproduce the above copyright 12101099Srwatson * notice, this list of conditions and the following disclaimer in the 13101099Srwatson * documentation and/or other materials provided with the distribution. 14101099Srwatson * 3. The name of the author may not be used to endorse or promote products 15101099Srwatson * derived from this software without specific prior written permission. 16101099Srwatson * 17101099Srwatson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18101099Srwatson * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19101099Srwatson * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20101099Srwatson * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21101099Srwatson * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22101099Srwatson * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23101099Srwatson * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24101099Srwatson * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25101099Srwatson * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26101099Srwatson * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27101099Srwatson * 28101099Srwatson * $FreeBSD: head/sys/compat/linux/linux_mib.h 191973 2009-05-10 18:43:43Z dchagin $ 29101099Srwatson */ 30101099Srwatson 31101099Srwatson#ifndef _LINUX_MIB_H_ 32101099Srwatson#define _LINUX_MIB_H_ 33101099Srwatson 34101099Srwatsonvoid linux_osd_jail_register(void); 35101099Srwatsonvoid linux_osd_jail_deregister(void); 36101099Srwatson 37101099Srwatsonvoid linux_get_osname(struct thread *td, char *dst); 38101099Srwatsonint linux_set_osname(struct thread *td, char *osname); 39101099Srwatson 40101099Srwatsonvoid linux_get_osrelease(struct thread *td, char *dst); 41101099Srwatsonint linux_set_osrelease(struct thread *td, char *osrelease); 42101099Srwatson 43105696Srwatsonint linux_get_oss_version(struct thread *td); 44101099Srwatsonint linux_set_oss_version(struct thread *td, int oss_version); 45105696Srwatson 46105696Srwatsonint linux_kernver(struct thread *td); 47132232Srwatson 48101099Srwatson#define LINUX_KERNVER_2004000 2004000 49132232Srwatson#define LINUX_KERNVER_2006000 2006000 50101099Srwatson 51101099Srwatson#define linux_use26(t) (linux_kernver(t) >= LINUX_KERNVER_2006000) 52101099Srwatson 53101099Srwatson#endif /* _LINUX_MIB_H_ */ 54101099Srwatson