linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Peter Willis" <pwillis@aslenv.com>
To: <linux-kernel@vger.kernel.org>
Subject: What kernel version does    'irq_set_irq_type'  become available?
Date: Fri, 6 Mar 2020 09:29:57 -0800	[thread overview]
Message-ID: <002301d5f3dc$dc029890$9407c9b0$@aslenv.com> (raw)

Hello,

Is there a history diagram somewhere that shows where specific features appear in the codebase?

Various online documentation for kernel driver development have references to functions that, in some cases, are either deprecated or do not yet exist in older versions of kernel source.

For example, I have written an interrupt service driver for an embedded application running on kernel version 2.6.21.  The original driver is level triggered and requires the driver to: 

a.) Temporarily disable the interrupt
b.) Service the interrupt
c.) Re-enable the interrupt

There was some desire for that driver to move to a more standard rising edge trigger.

In that line of thought , the documentation suggests    ' irq_set_irq_type'  with flag     'IRQF_TRIGGER_RISING'.

That function was experimental at one point, and doesn't appear to be available in the 2.6.21 source.
I did a      'find' -> 'while read' -> 'fgrep'  search to find the function declaration in headers but had no luck under 2.6.21 .

-- My specific questions --

Question 1.)   Is  'irq_set_irq_type'  still experimental ?
Question 2.)   At what version of the kernel source does the function appear?
Question 3.)  If the function exists for  2.6.21  What headers are required to allow effective compilation?


-- Notes and suggestions regarding kernel function documentation --

Note 1.) Perhaps functions should be documented with indications of what kernel versions they apply to.
Note 2.) In function documentation, an indication of what headers to include supporting each specific function would be nice.

Thank you for your time and comments,

Peter





             reply	other threads:[~2020-03-06 17:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-06 17:29 Peter Willis [this message]
2020-03-07 18:20 ` What kernel version does 'irq_set_irq_type' become available? Randy Dunlap

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='002301d5f3dc$dc029890$9407c9b0$@aslenv.com' \
    --to=pwillis@aslenv.com \
    --cc=linux-kernel@vger.kernel.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 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).