p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/include/xen/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /usr/lib/modules/3.10.0-1160.105.1.el7.x86_64/build/include/xen/xencomm.h
/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 *
 * Copyright (C) IBM Corp. 2006
 *
 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
 *          Jerone Young <jyoung5@us.ibm.com>
 */

#ifndef _LINUX_XENCOMM_H_
#define _LINUX_XENCOMM_H_

#include <xen/interface/xencomm.h>

#define XENCOMM_MINI_ADDRS 3
struct xencomm_mini {
	struct xencomm_desc _desc;
	uint64_t address[XENCOMM_MINI_ADDRS];
};

/* To avoid additionnal virt to phys conversion, an opaque structure is
   presented.  */
struct xencomm_handle;

extern void xencomm_free(struct xencomm_handle *desc);
extern struct xencomm_handle *xencomm_map(void *ptr, unsigned long bytes);
extern struct xencomm_handle *__xencomm_map_no_alloc(void *ptr,
			unsigned long bytes,  struct xencomm_mini *xc_area);

#if 0
#define XENCOMM_MINI_ALIGNED(xc_desc, n)				\
	struct xencomm_mini xc_desc ## _base[(n)]			\
	__attribute__((__aligned__(sizeof(struct xencomm_mini))));	\
	struct xencomm_mini *xc_desc = &xc_desc ## _base[0];
#else
/*
 * gcc bug workaround:
 * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16660
 * gcc doesn't handle properly stack variable with
 * __attribute__((__align__(sizeof(struct xencomm_mini))))
 */
#define XENCOMM_MINI_ALIGNED(xc_desc, n)				\
	unsigned char xc_desc ## _base[((n) + 1 ) *			\
				       sizeof(struct xencomm_mini)];	\
	struct xencomm_mini *xc_desc = (struct xencomm_mini *)		\
		((unsigned long)xc_desc ## _base +			\
		 (sizeof(struct xencomm_mini) -				\
		  ((unsigned long)xc_desc ## _base) %			\
		  sizeof(struct xencomm_mini)));
#endif
#define xencomm_map_no_alloc(ptr, bytes)			\
	({ XENCOMM_MINI_ALIGNED(xc_desc, 1);			\
		__xencomm_map_no_alloc(ptr, bytes, xc_desc); })

/* provided by architecture code: */
extern unsigned long xencomm_vtop(unsigned long vaddr);

static inline void *xencomm_pa(void *ptr)
{
	return (void *)xencomm_vtop((unsigned long)ptr);
}

#define xen_guest_handle(hnd)  ((hnd).p)

#endif /* _LINUX_XENCOMM_H_ */
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
January 19 2024 08:12:51
0 / 0
0755
interface
--
January 19 2024 08:12:51
0 / 0
0755
acpi.h
3.234 KB
November 06 2023 09:15:52
0 / 0
0644
balloon.h
1.178 KB
November 06 2023 09:15:52
0 / 0
0644
events.h
3.716 KB
November 06 2023 09:15:52
0 / 0
0644
features.h
0.452 KB
November 06 2023 09:15:52
0 / 0
0644
gntalloc.h
2.562 KB
November 06 2023 09:15:52
0 / 0
0644
gntdev.h
5.629 KB
November 06 2023 09:15:52
0 / 0
0644
grant_table.h
7.178 KB
November 06 2023 09:15:52
0 / 0
0644
hvc-console.h
0.468 KB
November 06 2023 09:15:52
0 / 0
0644
hvm.h
1.252 KB
November 06 2023 09:15:52
0 / 0
0644
page.h
0.439 KB
November 06 2023 09:15:52
0 / 0
0644
platform_pci.h
2.043 KB
November 06 2023 09:15:52
0 / 0
0644
swiotlb-xen.h
1.832 KB
November 06 2023 09:15:52
0 / 0
0644
tmem.h
0.303 KB
November 06 2023 09:15:52
0 / 0
0644
xen-ops.h
1.245 KB
November 06 2023 09:15:52
0 / 0
0644
xen.h
0.851 KB
November 06 2023 09:15:52
0 / 0
0644
xenbus.h
7.721 KB
November 06 2023 09:15:52
0 / 0
0644
xenbus_dev.h
1.803 KB
November 06 2023 09:15:52
0 / 0
0644
xencomm.h
2.548 KB
November 06 2023 09:15:52
0 / 0
0644