mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Irfan Habib" <irfan.habib@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: getting a return from a system call
Date: Tue, 17 Oct 2006 14:45:57 +0500	[thread overview]
Message-ID: <3420082f0610170245x1a3fa82ft88246b25cab09942@mail.gmail.com> (raw)

Hi,

I'm trying to build a system call which returns a float, and is defined as :
asmlinkage float sys_ph_pinfo(int pid, int mode)

but in a user level program every time, I evaluate it, I always get a return 0!
How do I capture the return of a system call?

Also is it possible that a system call return a structure or array?
Will that be available in user space? My hunch is that this is not
possible, as kernel memory space is disjoint form the user memory
space, but just for information.

Regards,
Irfan

             reply	other threads:[~2006-10-17  9:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-17  9:45 Irfan Habib [this message]
     [not found] ` <a06230915c15a5acf6842@192.168.2.100>
2006-10-17 10:17   ` Irfan Habib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3420082f0610170245x1a3fa82ft88246b25cab09942@mail.gmail.com \
    --to=irfan.habib@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®