All of lore.kernel.org
 help / color / mirror / Atom feed
From: danielhilst@gmail.com (Daniel Hilst Selli)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Exporting ioctls from out-of-tree module to userspace
Date: Wed, 16 Jul 2014 15:57:07 -0300	[thread overview]
Message-ID: <53C6CB03.7080709@gmail.com> (raw)

I write an out-of-tree module and now want to export its ioctls to 
userspace by installing a header that my modules includes, I was looking 
for how to do it but can't get it..

I was trying header-y from 
https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt but got: 
make[1]: *** No rule to make target 'headers_install'.  Stop.

Here is what I'm trying: https://gist.github.com/gkos/b0bc4e29a3147b0e6d3b

I see on kernel that usually the exported headers go in 
include/uapi/SOMETHING and are declared on include/uapi/Kbuild.. but 
have no idea if this may work for out-of-tree modules, the 
headers_install exists on linux Makefile so the 'No rule to make target 
'headers_install'' doesn't make sense to me ..

I try follow headers_install target on kernel's Makefile but only got 
frustraded :(

Any idea?

ps: I compiled the module but don't loaded it, so it may have mistakes

Thanks in advance!
Cheers!

             reply	other threads:[~2014-07-16 18:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-16 18:57 Daniel Hilst Selli [this message]
2014-07-17  7:06 ` Exporting ioctls from out-of-tree module to userspace Anupam Kapoor
2014-07-17 17:18   ` Daniel Hilst Selli

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=53C6CB03.7080709@gmail.com \
    --to=danielhilst@gmail.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.