From 7f0bd4c213ff8dca0eb3bdd887f5c62c8d30fab5 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Sat, 29 Jan 2011 15:50:52 -0500 Subject: fdso: pass userpsace config argument to object constructor As Glenn pointed out, it is useful for some protocols (e.g., k-exclusion protocols) to know the userspace configuration at object creation time. This patch changes the fdso API to pass the parameter to the object constructor, which is then in turn passed to the lock allocater. The return code from the lock allocater is passed to userspace in return. This also fixes some null pointer dereferences in the FDSO code found by the test suite in liblitmus. --- litmus/sched_gsn_edf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'litmus/sched_gsn_edf.c') diff --git a/litmus/sched_gsn_edf.c b/litmus/sched_gsn_edf.c index c525d43eb051..c5c9600c33d8 100644 --- a/litmus/sched_gsn_edf.c +++ b/litmus/sched_gsn_edf.c @@ -895,7 +895,8 @@ static struct litmus_lock* gsnedf_new_fmlp(void) /* **** lock constructor **** */ -static long gsnedf_allocate_lock(struct litmus_lock **lock, int type) +static long gsnedf_allocate_lock(struct litmus_lock **lock, int type, + void* __user unused) { int err = -ENXIO; -- cgit v1.2.2