From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id F1B9C1A1E55 for ; Thu, 7 Apr 2016 01:36:28 -0700 (PDT) From: Johannes Thumshirn Subject: Re: [ndctl PATCH 2/5] ndctl: helper for S.M.A.R.T. data retrieval Date: Thu, 07 Apr 2016 10:36:27 +0200 Message-ID: <7945554.SjGoIoQYtB@c203> In-Reply-To: <20160407010709.30641.55484.stgit@dwillia2-desk3.jf.intel.com> References: <20160407010659.30641.26139.stgit@dwillia2-desk3.jf.intel.com> <20160407010709.30641.55484.stgit@dwillia2-desk3.jf.intel.com> MIME-Version: 1.0 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: linux-nvdimm@lists.01.org List-ID: On Mittwoch, 6. April 2016 18:07:09 CEST Dan Williams wrote: > Helper functions to issue the "SMART and Health Info (Function Index 1)" > DSM and parse its results. > = > http://pmem.io/documents/NVDIMM_DSM_Interface_Example.pdf > = > Signed-off-by: Dan Williams > --- [...] > = > +enum { > + ND_SMART_HEALTH_VALID =3D 1 << 0, > + ND_SMART_TEMP_VALID =3D 1 << 1, > + ND_SMART_SPARES_VALID =3D 1 << 2, > + ND_SMART_ALARM_VALID =3D 1 << 3, > + ND_SMART_USED_VALID =3D 1 << 4, > + ND_SMART_SHUTDOWN_VALID =3D 1 << 5, > + ND_SMART_VENDOR_VALID =3D 1 << 6, > + ND_SMART_TEMP_TRIP =3D 1 << 0, > + ND_SMART_SPARE_TRIP =3D 1 << 1, > + ND_SMART_NON_CRITICAL_HEALTH =3D 1 << 0, > + ND_SMART_CRITICAL_HEALTH =3D 1 << 1, > + ND_SMART_FATAL_HEALTH =3D 1 << 2, > +}; Same applies here. -- = Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N=FCrnberg GF: Felix Imend=F6rffer, Jane Smithard, Graham Norton HRB 21284 (AG N=FCrnberg) Key fingerprint =3D EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850 _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm