kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* no-op error in dmesg
@ 2012-06-18 18:34 Pritam Bankar
  2012-06-19  9:41 ` Matthias Brugger
  0 siblings, 1 reply; 2+ messages in thread
From: Pritam Bankar @ 2012-06-18 18:34 UTC (permalink / raw)
  To: kernelnewbies

Hi,
I have one structure called foo. Address of object of foo(say objfoo) is 
passed to ioctl call

status = ioctl(fd, arg, &objfoo);

But during manipulation I am not getting ioctl error 5 (input/output error).
I am more confused about error in dmesg which is
*foo: no-op *

What does no-op indicate? If it is no-operation, how can we relate this 
to foo structure?

Thanks,
Pritam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120619/27a394ca/attachment.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* no-op error in dmesg
  2012-06-18 18:34 no-op error in dmesg Pritam Bankar
@ 2012-06-19  9:41 ` Matthias Brugger
  0 siblings, 0 replies; 2+ messages in thread
From: Matthias Brugger @ 2012-06-19  9:41 UTC (permalink / raw)
  To: kernelnewbies

Hi,

On 06/18/2012 08:34 PM, Pritam Bankar wrote:
> Hi,
> I have one structure called foo. Address of object of foo(say objfoo) is
> passed to ioctl call
>
> status = ioctl(fd, arg, &objfoo);

as objfoo is a pointer to foo:
struct something foo;
struct somethint *objfoo = &foo;

&objfoo therefore is a pointer to a pointer, not sure if you wanted to 
pass this to the ioctl.

>
> But during manipulation I am not getting ioctl error 5 (input/output error).
> I am more confused about error in dmesg which is
> *foo: no-op *

you can't work directly on a object in userspace memory as this might be 
a security issue. There exits a function to copy from user memory area 
to kernel memory area (copy_from_user; and afterwards copy back to the 
user; copy_to_user).

Cheers,
Matthias

>
> What does no-op indicate? If it is no-operation, how can we relate this
> to foo structure?
>
> Thanks,
> Pritam
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-19  9:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 18:34 no-op error in dmesg Pritam Bankar
2012-06-19  9:41 ` Matthias Brugger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).