Re: My output value from IOCTL command doesn`t work

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

 



On Wed, Sep 17, 2008 at 4:59 AM, Bartek Dolewski <doles2@xxxxxxxxx> wrote:
> Hi,
<snip the code and stuff>
> When i fire up this application I can see this message: <<Here is
> secret number for You: 0 and ret: 0>> Of course ret == 0 but why does
> my param value equal to zero ? When i look at dmesg output there is
> something like this:
> "New Secret Treasure has been set up as: 47
> Secret Treasure is: 47"
> And this comes from IO_GET_TREASURE, so everything in kernel mode is
> set properly but not in userspace. Thanks for any help

I am not a guru, but I wonder about this:

in kernel code you specify unsigned long, but in user code
 you are inconsistent.  ioctl_set_trs uses unsigned long, but
 iostl_get_trs uses only unsigned, which is int.

-- 
-Bob

--
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