1285387Sadrian/*
2285387Sadrian * Copyright (c) 2015 Adrian Chadd <adrian@FreeBSD.org>.
3285387Sadrian * All rights reserved.
4285387Sadrian *
5285387Sadrian * Redistribution and use in source and binary forms, with or without
6285387Sadrian * modification, are permitted provided that the following conditions
7285387Sadrian * are met:
8285387Sadrian * 1. Redistributions of source code must retain the above copyright
9285387Sadrian *    notice, this list of conditions and the following disclaimer.
10285387Sadrian * 2. Redistributions in binary form must reproduce the above copyright
11285387Sadrian *    notice, this list of conditions and the following disclaimer in the
12285387Sadrian *    documentation and/or other materials provided with the distribution.
13285387Sadrian * 4. Neither the name of the University nor the names of its contributors
14285387Sadrian *    may be used to endorse or promote products derived from this software
15285387Sadrian *    without specific prior written permission.
16285387Sadrian *
17285387Sadrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18285387Sadrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19285387Sadrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20285387Sadrian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21285387Sadrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22285387Sadrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23285387Sadrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24285387Sadrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25285387Sadrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26285387Sadrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27285387Sadrian * SUCH DAMAGE.
28285387Sadrian *
29285387Sadrian * $FreeBSD$
30285387Sadrian */
31285387Sadrian#ifndef	__SYS_NUMA_H__
32285387Sadrian#define	__SYS_NUMA_H__
33285387Sadrian
34285387Sadrian#include <sys/_vm_domain.h>
35285387Sadrian
36285387Sadrianextern	int numa_setaffinity(cpuwhich_t which, id_t id,
37285387Sadrian	    struct vm_domain_policy_entry *vd);
38285387Sadrianextern	int numa_getaffinity(cpuwhich_t which, id_t id,
39285387Sadrian	    struct vm_domain_policy_entry *vd);
40285387Sadrian
41285387Sadrian#endif	/* __SYS_NUMA_H__ */
42