Skip to content

Commit

Permalink
Add new Elixir macro
Browse files Browse the repository at this point in the history
- Will be useful when adding my LEE Falcon boot slides to
  the boot time optimization slides

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
  • Loading branch information
Michael Opdenacker committed Jun 2, 2021
1 parent 747558b commit 06f11cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/common.sty
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
\newcommand\projfunc[2]{\href{https://elixir.bootlin.com/#1/latest/ident/#2}{\codelink{#2()}}}
\newcommand\projconfig[2]{\href{https://elixir.bootlin.com/#1/latest/K/ident/#2}{\codelink{#2}}}
\newcommand\projconfigval[3]{\href{https://elixir.bootlin.com/#1/latest/K/ident/#2}{\codelink{#2=#3}}}
\newcommand\projconfignotset[2]{\href{https://elixir.bootlin.com/#1/latest/K/ident/#2}{\codelink{## #2 is not set}}}

% Linux Elixir commands
\newcommand\kfunc[1]{\href{https://elixir.bootlin.com/linux/latest/ident/#1}{\codelink{#1()}}}
Expand All @@ -21,6 +22,7 @@
\newcommand\ksubarch[1]{\href{https://elixir.bootlin.com/linux/latest/source/arch/#1/}{\codelink{#1}}}
\newcommand\kconfig[1]{\href{https://elixir.bootlin.com/linux/latest/K/ident/#1}{\codelink{#1}}}
\newcommand\kconfigval[2]{\href{https://elixir.bootlin.com/linux/latest/K/ident/#1}{\codelink{#1=#2}}}
\newcommand\kconfignotset[1]{\href{https://elixir.bootlin.com/linux/latest/K/ident/#1}{\codelink{## #1 is not set}}}
\newcommand\kdoctext[1]{\href{https://kernel.org/doc/Documentation/#1}{\codelink{Documentation/#1}}}
\newcommand\kdochtml[1]{\href{https://www.kernel.org/doc/html/latest/#1.html}{\codelink{#1}}}
\newcommand\kdochtmldir[1]{\href{https://www.kernel.org/doc/html/latest/#1/}{\codelink{#1/}}}
Expand Down

0 comments on commit 06f11cf

Please sign in to comment.