public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [patch] add alloc_pages/free_pages support
@ 2002-10-03  0:03 David Mosberger
  2002-10-03  0:20 ` Ulrich Drepper
  0 siblings, 1 reply; 17+ messages in thread
From: David Mosberger @ 2002-10-03  0:03 UTC (permalink / raw)
  To: libc-hacker; +Cc: davidm

Below is a patch to add support for the new
alloc_hugepages()/free_hugepages() system call.  I hope I got all the
details right.  If not, ring...

Thanks,

	--david

2002-10-02  David Mosberger  <davidm@hpl.hp.com>

	* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Mention
	sys/hugepage.h.

	* sysdeps/unix/sysv/linux/syscalls.list: Make alloc_hugepages and
	free_hugepages weak symbols.

	* sysdeps/unix/sysv/linux/Versions: Mention alloc_hugepages and
	free_hugepages.

2002-10-01  Rohit Seth <rohit.seth@intel.com>,
	    David Mosberger <davidm@hpl.hp.com>

	* sysdeps/unix/sysv/linux/syscalls.list: Add alloc_hugepages and
	free_hugepages.
	* sysdeps/unix/sysv/linux/sys/hugepage.h: New file.

Index: sysdeps/unix/sysv/linux/Makefile
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/Makefile,v
retrieving revision 1.121
diff -u -r1.121 Makefile
--- sysdeps/unix/sysv/linux/sysdeps/unix/sysv/linux/Makefile	15 Sep 2002 02:30:28 -0000	1.121
+++ sysdeps/unix/sysv/linux/sysdeps/unix/sysv/linux/Makefile	3 Oct 2002 07:01:33 -0000
@@ -20,7 +20,7 @@
 		  sys/kd.h sys/soundcard.h sys/vt.h \
 		  sys/quota.h sys/fsuid.h \
 		  scsi/sg.h scsi/scsi.h scsi/scsi_ioctl.h sys/pci.h \
-		  sys/ultrasound.h sys/raw.h sys/personality.h
+		  sys/ultrasound.h sys/raw.h sys/personality.h sys/hugepage.h
 
 install-others += $(inst_includedir)/bits/syscall.h
 
Index: sysdeps/unix/sysv/linux/Versions
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/Versions,v
retrieving revision 1.18
diff -u -r1.18 Versions
--- sysdeps/unix/sysv/linux/sysdeps/unix/sysv/linux/Versions	30 Aug 2002 01:30:55 -0000	1.18
+++ sysdeps/unix/sysv/linux/sysdeps/unix/sysv/linux/Versions	3 Oct 2002 07:01:33 -0000
@@ -102,6 +102,9 @@
     # r*
     readahead;
 
+    alloc_hugepages;
+    free_hugepages;
+
     #errlist-compat	126
     _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
   }
Index: sysdeps/unix/sysv/linux/syscalls.list
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/syscalls.list,v
retrieving revision 1.94
diff -u -r1.94 syscalls.list
--- sysdeps/unix/sysv/linux/sysdeps/unix/sysv/linux/syscalls.list	15 Aug 2002 08:25:16 -0000	1.94
+++ sysdeps/unix/sysv/linux/sysdeps/unix/sysv/linux/syscalls.list	3 Oct 2002 07:01:33 -0000
@@ -80,3 +80,5 @@
 lremovexattr	EXTRA	lremovexattr	i:ss	lremovexattr
 fremovexattr	EXTRA	fremovexattr	i:is	fremovexattr
 
+alloc_hugepages EXTRA	alloc_hugepages	b:ianii __alloc_hugepages	alloc_hugepages
+free_hugepages  EXTRA	free_hugepages	i:a 	__free_hugepages	free_hugepages
Index: sysdeps/unix/sysv/linux/sys/hugepage.h
===================================================================
RCS file: sysdeps/unix/sysv/linux/sys/hugepage.h
diff -N sysdeps/unix/sysv/linux/sys/hugepage.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ sysdeps/unix/sysv/linux/sys/sysdeps/unix/sysv/linux/sys/hugepage.h	3 Oct 2002 07:01:33 -0000
@@ -0,0 +1,8 @@
+#ifndef _SYS_HUGEPAGE_H
+#define _SYS_HUGEPAGE_H 1
+
+extern void *alloc_hugepages (int key, void *addr, size_t len, int prot,
+			      int flag);
+extern int free_hugepages (void *addr);
+
+#endif

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2002-10-23 18:46 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03  0:03 [patch] add alloc_pages/free_pages support David Mosberger
2002-10-03  0:20 ` Ulrich Drepper
2002-10-03 12:37   ` David Mosberger
2002-10-03 14:44     ` David Mosberger
2002-10-03 15:05   ` David Mosberger
     [not found]     ` <200210032146.g93LkB119076@magilla.sf.frob.com>
2002-10-03 15:30       ` David Mosberger
2002-10-03 15:34         ` Ulrich Drepper
2002-10-03 22:48           ` David Mosberger
2002-10-04  0:14           ` David Mosberger
2002-10-04 20:02             ` Andreas Jaeger
2002-10-22 19:39               ` David Mosberger
2002-10-22 23:52                 ` Ulrich Drepper
2002-10-22 23:58                   ` David Mosberger
2002-10-23  8:20                     ` Ulrich Drepper
2002-10-23 10:34                       ` David Mosberger
2002-10-23 11:46                         ` Ulrich Drepper
2002-10-23 14:51                           ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).