lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOesGMj9qUKw9hTSmoV76bvbKHbapxyUss4JfrD0pg9=oPpLdg@mail.gmail.com>
Date:	Tue, 24 Sep 2013 21:37:54 -0700
From:	Olof Johansson <olof@...om.net>
To:	Feng Kan <fkan@....com>
Cc:	Catalin Marinas <catalin.marinas@....com>,
	Arnd Bergmann <arnd@...db.de>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-arm-kernel@...ts.infradead.org" 
	<linux-arm-kernel@...ts.infradead.org>
Subject: Re: General placement of platform drivers and header files

Hi,

On Tue, Sep 24, 2013 at 8:33 PM, Feng Kan <fkan@....com> wrote:
> Hi all:
>
> I have some drivers like Queue Manager and co-processor driver that
> are used by other
> drivers like Ethernet. Would it be appropriate to locate these drivers
> under one folder under
> drivers/misc/arch_name/xxx.

drivers/misc is almost always the wrong answer to where to add a driver.

It would help to also know how the devices interact to answer the
question of best location. Are the drivers for the coprocessor and for
the queue manager mostly a pass-through for some operations (and some
shared allocation of resources), i.e. more of a library, or is it a
full-fledged driver that will service interrupts, etc?

> My other question is on common header files (belonging to Queue
> Manager) but is sourced
> by Ethernet, where should those reside. Should they go under
> linux/include/misc/arch_name
> or directly sourced using the ../../../misc/arch_name/headerfile method.

This depends somewhat on where the driver ends up, but somewhere under
include/linux is likely the right place for the in-kernel interface
header files.


-Olof
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ