lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 17 Oct 2006 15:17:16 +0500
From:	"Irfan Habib" <irfan.habib@...il.com>
To:	"Jay Vaughan" <jv@...ess-music.de>
Cc:	"Linux kernel" <linux-kernel@...r.kernel.org>
Subject: Re: getting a return from a system call

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@...ess-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@...r.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
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists