mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Irfan Habib" <irfan.habib@gmail.com>
To: "Jay Vaughan" <jv@access-music.de>
Cc: "Linux kernel" <linux-kernel@vger.kernel.org>
Subject: Re: getting a return from a system call
Date: Tue, 17 Oct 2006 15:17:16 +0500	[thread overview]
Message-ID: <3420082f0610170317n7a712a4du9801c86506f51389@mail.gmail.com> (raw)
In-Reply-To: <a06230915c15a5acf6842@192.168.2.100>

and what about long? I tried return type long, it also always returned
0, instead of the custom one I was returning

On 10/17/06, Jay Vaughan <jv@access-music.de> wrote:
>
> You can't use floats in kernel system calls ..
>
> j.
>
> At 14:45 +0500 17/10/06, Irfan Habib wrote:
> >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
> >-
> >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/
>
>
> --
>
> ;
>
> Jay Vaughan
>
>

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

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

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=3420082f0610170317n7a712a4du9801c86506f51389@mail.gmail.com \
    --to=irfan.habib@gmail.com \
    --cc=jv@access-music.de \
    --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®