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]
Date:	Fri, 21 Mar 2008 04:50:51 +0100
From:	"Kay Sievers" <kay.sievers@...y.org>
To:	"Rodolfo Giometti" <giometti@...ux.it>
Cc:	linux-kernel@...r.kernel.org,
	"Andrew Morton" <akpm@...ux-foundation.org>,
	"David Woodhouse" <dwmw2@...radead.org>,
	"Dave Jones" <davej@...hat.com>, "Sam Ravnborg" <sam@...nborg.org>,
	"Greg KH" <greg@...ah.com>,
	"Randy Dunlap" <randy.dunlap@...cle.com>
Subject: Re: [PATCH 1/7] LinuxPPS core support.

On Thu, Mar 6, 2008 at 1:09 PM, Rodolfo Giometti <giometti@...ux.it> wrote:
> This patch adds the kernel side of the PPS support currently named
>  "LinuxPPS".

>  diff --git a/include/linux/pps.h b/include/linux/pps.h
>  new file mode 100644
>  index 0000000..c455443
>  --- /dev/null
>  +++ b/include/linux/pps.h
>  @@ -0,0 +1,204 @@

>  +/* The main struct */
>  +struct pps_device {
>  +       struct pps_source_info info;            /* PSS source info */
>  +
>  +       struct pps_kparams params;              /* PPS's current params */
>  +
>  +       __u32 assert_sequence;                  /* PPS' assert event seq # */
>  +       __u32 clear_sequence;                   /* PPS' clear event seq # */
>  +       struct pps_ktime assert_tu;
>  +       struct pps_ktime clear_tu;
>  +       int current_mode;                       /* PPS mode at event time */
>  +
>  +       int go;                                 /* PPS event is arrived? */
>  +       wait_queue_head_t queue;                /* PPS event queue */
>  +
>  +       unsigned int id;                        /* PPS source unique ID */
>  +       struct cdev cdev;
>  +       struct device *dev;
>  +       int devno;
>  +       struct fasync_struct *async_queue;      /* fasync method */
>  +       spinlock_t lock;
>  +
>  +       atomic_t usage;                         /* usage count */
>  +       wait_queue_head_t usage_queue;
>  +
>  +       struct class class_dev;

Why is an entire class embedded into every device? :)

Kay
--
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