login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
15
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Randy Dunlap <randy.dunlap@...>
To: KOSAKI Motohiro <kosaki.motohiro@...>
Cc: <linux-mm@...>, <linux-kernel@...>, Marcelo Tosatti <marcelo@...>, Daniel Spang <daniel.spang@...>, Rik van Riel <riel@...>, Andrew Morton <akpm@...>
Subject:
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
Date: Monday, January 14, 2008 - 9:08 pm
On Tue, 15 Jan 2008 10:01:21 +0900 KOSAKI Motohiro wrote:
quoted text
> the core of this patch series. > add /dev/mem_notify device for notification low memory to user process. > > <usage examle> > > fd = open("/dev/mem_notify", O_RDONLY); > if (fd < 0) { > exit(1); > } > pollfds.fd = fd; > pollfds.events = POLLIN; > pollfds.revents = 0; > err = poll(&pollfds, 1, -1); // wake up at low memory > > ... > </usage example> > > Signed-off-by: Marcelo Tosatti <marcelo@kvack.org> > Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> > > --- > drivers/char/mem.c | 6 ++ > include/linux/mem_notify.h | 41 ++++++++++++++++ > include/linux/mmzone.h | 1 > mm/Makefile | 2 > mm/mem_notify.c | 109 +++++++++++++++++++++++++++++++++++++++++++++ > mm/page_alloc.c | 1 > 6 files changed, 159 insertions(+), 1 deletion(-) >
Hi, 1/ I don't see the file below listed in the diffstat above... 2/ Where is the userspace interface information for the syscall?
quoted text
> Index: linux-2.6.24-rc6-mm1-memnotify/Documentation/devices.txt > =================================================================== > --- linux-2.6.24-rc6-mm1-memnotify.orig/Documentation/devices.txt 2008-01-13 16:42:57.000000000 +0900 > +++ linux-2.6.24-rc6-mm1-memnotify/Documentation/devices.txt 2008-01-13 17:07:05.000000000 +0900 > @@ -96,6 +96,7 @@ Your cooperation is appreciated. > 11 = /dev/kmsg Writes to this come out as printk's > 12 = /dev/oldmem Used by crashdump kernels to access > the memory of the kernel that crashed. > + 13 = /dev/mem_notify Low memory notification. > > 1 block RAM disk > 0 = /dev/ram0 First RAM disk
--- ~Randy --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC][PATCH 0/5] mem notifications v4
, KOSAKI Motohiro
, (Mon Jan 14, 8:52 pm)
[RFC][PATCH 5/5] /proc/zoneinfo enhancement
, KOSAKI Motohiro
, (Mon Jan 14, 9:03 pm)
Re: [RFC][PATCH 5/5] /proc/zoneinfo enhancement
, Alan Cox
, (Tue Jan 15, 6:44 am)
Re: [RFC][PATCH 5/5] /proc/zoneinfo enhancement
, KOSAKI Motohiro
, (Tue Jan 15, 6:49 am)
[RFC][PATCH 4/5] memory_pressure_notify() caller
, KOSAKI Motohiro
, (Mon Jan 14, 9:02 pm)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, Daniel Spång
, (Tue Jan 15, 6:55 pm)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, Rik van Riel
, (Tue Jan 15, 6:59 pm)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, Daniel Spång
, (Tue Jan 15, 7:39 pm)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, KOSAKI Motohiro
, (Tue Jan 15, 9:48 pm)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, Daniel Spång
, (Wed Jan 16, 7:03 am)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, KOSAKI Motohiro
, (Wed Jan 16, 11:26 pm)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, Daniel Spång
, (Fri Jan 18, 6:24 am)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, KOSAKI Motohiro
, (Fri Jan 18, 6:30 am)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, KAMEZAWA Hiroyuki
, (Mon Jan 14, 10:06 pm)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, KOSAKI Motohiro
, (Mon Jan 14, 10:37 pm)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, KAMEZAWA Hiroyuki
, (Mon Jan 14, 11:00 pm)
Re: [RFC][PATCH 4/5] memory_pressure_notify() caller
, KOSAKI Motohiro
, (Mon Jan 14, 11:08 pm)
[RFC][PATCH 3/5] add /dev/mem_notify device
, KOSAKI Motohiro
, (Mon Jan 14, 9:01 pm)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Pavel Machek
, (Tue Jan 15, 6:16 pm)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, KOSAKI Motohiro
, (Tue Jan 15, 9:57 pm)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Marcelo Tosatti
, (Wed Jan 16, 12:13 am)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Pavel Machek
, (Wed Jan 16, 7:42 am)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Daniel Spång
, (Wed Jan 16, 7:51 am)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, KOSAKI Motohiro
, (Wed Jan 16, 11:04 pm)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Alan Cox
, (Tue Jan 15, 6:46 am)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, KOSAKI Motohiro
, (Tue Jan 15, 6:59 am)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Alan Cox
, (Tue Jan 15, 7:20 am)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Marcelo Tosatti
, (Tue Jan 15, 8:05 am)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Alan Cox
, (Tue Jan 15, 9:42 am)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, KOSAKI Motohiro
, (Tue Jan 15, 7:48 am)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Alan Cox
, (Tue Jan 15, 9:42 am)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, KOSAKI Motohiro
, (Tue Jan 15, 10:43 pm)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, KAMEZAWA Hiroyuki
, (Mon Jan 14, 10:10 pm)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, KOSAKI Motohiro
, (Mon Jan 14, 10:20 pm)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Rik van Riel
, (Mon Jan 14, 10:56 pm)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, Randy Dunlap
, (Mon Jan 14, 9:08 pm)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, KOSAKI Motohiro
, (Mon Jan 14, 9:20 pm)
Re: [RFC][PATCH 3/5] add /dev/mem_notify device
, KOSAKI Motohiro
, (Mon Jan 14, 9:24 pm)
[RFC][PATCH 2/5] introduce wake_up_locked_nr() new API
, KOSAKI Motohiro
, (Mon Jan 14, 9:00 pm)
[RFC][PATCH 1/5] introduce poll_wait_exclusive() new API
, KOSAKI Motohiro
, (Mon Jan 14, 8:59 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Benjamin Herrenschmidt
Re: [PATCH] Remove process freezer from suspend to RAM pathway
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Mariusz Kozlowski
[PATCH 03] drivers/sbus/char/bbc_envctrl.c: kmalloc + memset conversion to kzalloc
Yinghai Lu
[PATCH 02/16] x86: introduce nr_irqs for 64bit v3
git
:
linux-netdev
:
Gerrit Renker
[PATCH 13/37] dccp: Deprecate Ack Ratio sysctl
James Morris
Re: [GIT]: Networking
Jeff Garzik
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
git-commits-head
:
Colocation donated by:
Who's online
There are currently
1 user
and
913 guests
online.
Online users
strcmp
Syndicate