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

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



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