mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-15 13:34:35 +03:00
Embed PLPA (Portable Linux Processor Affinity) in order to support
conflicting affinity API of different Linux kernel versions.
This commit is contained in:
36
plpa-1.1/src/plpa_internal.h
Normal file
36
plpa-1.1/src/plpa_internal.h
Normal file
@ -0,0 +1,36 @@
|
||||
/* -*- c -*-
|
||||
*
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
*
|
||||
* $HEADER$
|
||||
*/
|
||||
|
||||
#ifndef PLPA_INTERNAL_H
|
||||
#define PLPA_INTERNAL_H
|
||||
|
||||
#include <plpa.h>
|
||||
|
||||
/* Have we initialized yet? */
|
||||
extern int PLPA_NAME(initialized);
|
||||
|
||||
/* Cached size of the affinity buffers that the kernel expects */
|
||||
extern size_t PLPA_NAME(len);
|
||||
|
||||
/* Setup topology information */
|
||||
int PLPA_NAME(map_init)(void);
|
||||
|
||||
/* Setup API type */
|
||||
int PLPA_NAME(api_probe_init)(void);
|
||||
|
||||
/* Free all mapping memory */
|
||||
void PLPA_NAME(map_finalize)(void);
|
||||
|
||||
#endif /* PLPA_INTERNAL_H */
|
||||
|
Reference in New Issue
Block a user