Skip to contentSkip to conversation

s390: define struct pid_set

PATCH In review Serge E. Hallyn 2 participants 2 messages Sep 17, 2009 – Sep 18, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: define struct pid_set

Assume the definition was lost in pulling this code out of mktree.c.

---
 clone_s390x.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
clone_s390x.c +7 -1
index 39d12e5..661a5c4 100644
@@ -24,6 +24,12 @@
  */
 #if defined(__NR_clone_with_pids)
 
+/* this really belongs to some kernel header ! */
+struct pid_set {
+	int num_pids;
+	pid_t *pids;
+};
+
 /* (see: http://lkml.indiana.edu/hypermail/linux/kernel/9604.3/0204.html) */
 
 #define do_clone_with_pids(stack, flags, ptid, ctid, setp) ({ \
@@ -47,7 +53,7 @@
 	})
 
 int clone_with_pids(int (*fn)(void *), void *child_stack, int flags,
-			struct target_pid_set *target_pids, void *arg)
+			struct pid_set *target_pids, void *arg)
 {
 	long retval;
 	retval = do_clone_with_pids(child_stack, flags, NULL, NULL,
Signature · 1 line
1.6.1.1

A message that is not in the archive (sent off-list or not yet received): 20090917034703.GA25290-r/[email protected]

#2 lore raw
Quoted 2 lines · Serge E. Hallyn

Assume the definition was lost in pulling this code out of mktree.c.

yes it was... thanks.

Quoted 32 lines
---
 clone_s390x.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
clone_s390x.c +7 -1
index 39d12e5..661a5c4 100644
@@ -24,6 +24,12 @@
  */
 #if defined(__NR_clone_with_pids)
 
+/* this really belongs to some kernel header ! */
+struct pid_set {
+	int num_pids;
+	pid_t *pids;
+};
+
 /* (see: http://lkml.indiana.edu/hypermail/linux/kernel/9604.3/0204.html) */
 
 #define do_clone_with_pids(stack, flags, ptid, ctid, setp) ({ \
@@ -47,7 +53,7 @@
 	})
 
 int clone_with_pids(int (*fn)(void *), void *child_stack, int flags,
-			struct target_pid_set *target_pids, void *arg)
+			struct pid_set *target_pids, void *arg)
 {
 	long retval;
 	retval = do_clone_with_pids(child_stack, flags, NULL, NULL,