All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: WyoFlippa <wyoflippa@gmail.com>
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: Kernel drivers and IOCTLs
Date: Wed, 22 Jan 2020 20:04:33 +0100	[thread overview]
Message-ID: <20200122190433.GA64264@kroah.com> (raw)
In-Reply-To: <8969dfce-a295-c351-201c-4d8a0e90ac58@gmail.com>

On Tue, Jan 21, 2020 at 10:27:01PM -0600, WyoFlippa wrote:
> Hi,
> 
> I'm working on a driver that would verify a Linux or U-Boot image is secure
> and I need to pass parameters such as the public key, starting address, etc.
> I'd heard in talking to developers that IOCTLs are frowned upon. I also
> found this article that seems to indicate that using sysfs or proc is a
> better way to go.
> 
> https://www.linuxjournal.com/article/8110
> 
> 
> but then I see this article from 2013 which is more recent than the article.
> 
> https://www.kernel.org/doc/html/latest/process/botching-up-ioctls.html
> 
> 
> So are IOCTLs discouraged or not?

They are discouraged, except when they are necessary :)

It all depends on exactly what you are trying to do.

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

  reply	other threads:[~2020-01-22 19:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-22  4:27 Kernel drivers and IOCTLs WyoFlippa
2020-01-22 19:04 ` Greg KH [this message]
2020-01-23 16:49 ` Valdis Klētnieks
2020-02-05  2:57   ` WyoFlippa
2020-02-05  4:01     ` Valdis Klētnieks

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=20200122190433.GA64264@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=wyoflippa@gmail.com \
    /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.