Re: Why system call is returning -1 ??????

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-09-06 at 11:42 +0530, Harshal Sarode wrote:
[...] 
>  4) after compiling kernel , when i tried to call that system call , it returned me -1.

- What contains "errno" since it "errno" set in userspace if a sys-call returns -1?
- And what ist the value in the kernel you are returning (read: add a printk() in the
  sys-call to print it)?
- How many bits has the "long" there?

	Bernd 
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux