From: matthias.bgg@googlemail.com (Matthias Brugger)
To: kernelnewbies@lists.kernelnewbies.org
Subject: no-op error in dmesg
Date: Tue, 19 Jun 2012 11:41:39 +0200 [thread overview]
Message-ID: <4FE04953.9070502@gmail.com> (raw)
In-Reply-To: <4FDF74A1.8030407@gmail.com>
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
prev parent reply other threads:[~2012-06-19 9:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-18 18:34 no-op error in dmesg Pritam Bankar
2012-06-19 9:41 ` Matthias Brugger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FE04953.9070502@gmail.com \
--to=matthias.bgg@googlemail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.