Displaying 6 results from an estimated 6 matches for "_cmp".
Did you mean:
_cmd
2017 May 05
2
[PATCH v1] ACPI: Switch to use generic UUID API
...t 2:21 AM, Andy Shevchenko
> > <andriy.shevchenko at linux.intel.com> wrote:
> > > for (i = 0; i < NFIT_UUID_MAX; i++)
> > > - if (memcmp(to_nfit_uuid(i), spa->range_guid, 16)
> > > == 0)
> > > + if (!uuid_le_cmp_pp(to_nfit_uuid(i), (uuid_le
> > > *)spa->range_guid))
> >
> > What is _cmp_pp? Why not _compare?
Dan, it's a typo. In this patch it should be just ..._cmp(), which is
already a part of API.
> >
>
> I second that.
>
> Andy,
Amir, just to be clear...
2017 May 05
0
[PATCH v1] ACPI: Switch to use generic UUID API
...patches,
> xfs use case suggests there is also justification for the additional helpers:
>
> uuid_is_null() / uuid_equal()
> guid_is_null() / guid_equal()
The is_null is useful and I bet we'll find other instances. I'm
not sure _equals really adds much value over the existing _cmp
helpers, but on the other hand they are so trivial that we might as
well add them.
The other thing XFS has is uuid_copy.
2017 May 05
1
[PATCH v1] ACPI: Switch to use generic UUID API
...s way. But I wouldn't prevent current users of uuid_le to
> continue using it without conversion (it may be done case by case after
> we settle an API)
>
> So, summarize what Christoph said it will look like
>
> typedef uuid_be uuid_t;
> typedef uuid_le guid_t
>
> uuid_cmp() / uuid_copy() / uuid_to_bin() / etc
> guid_cmp() / guid_copy() / guid_to_bin() / etc
>
> Correct? Christoph?
>
That looks right to me.
To complete the picture for folks not cc'ed on my patches,
xfs use case suggests there is also justification for the additional helpers:
uuid_i...
2013 Aug 06
0
[ANNOUNCE] libnetfilter_conntrack 1.0.4 release
...libnetfilter_conntrack: don't ignore ATTR_CONNLABELS
Florian Westphal (18):
api: add nfct_bitmask object
api: add connlabel api and attribute
examples: add connlabel dump/set/clear demo programs
api: add CTA_LABEL_MASK attribute handling
qa: add api test for nfct_cmp and nfct_exp functions
conntrack, expect: fix _cmp api with STRICT checking
expect: consider all expect attributes when comparing
conntrack: nfct_cmp: also compare labels
qa: nfct_cmp: verify individual attr comparision
connlabel: fix NULL deref on malloc failure...
2017 May 05
2
[PATCH v1] ACPI: Switch to use generic UUID API
...>
> func = cmd;
> @@ -394,7 +394,7 @@ int nfit_spa_type(struct acpi_nfit_system_address *spa)
> int i;
>
> for (i = 0; i < NFIT_UUID_MAX; i++)
> - if (memcmp(to_nfit_uuid(i), spa->range_guid, 16) == 0)
> + if (!uuid_le_cmp_pp(to_nfit_uuid(i), (uuid_le *)spa->range_guid))
What is _cmp_pp? Why not _compare?
Other than that, looks ok to me.
2009 Dec 31
1
[PATCH] Autogenerate uureg opcode macros
...src2))
-#define _ARA(dst, src) ureg_ARA(ureg, dst, _src(src))
-#define _ARR(dst, src) ureg_ARR(ureg, dst, _src(src))
-#define _BRA(src) ureg_BRA(ureg, _src(src))
-#define _CAL(label) ureg_CAL(ureg, label)
-#define _RET() ureg_RET(ureg)
-#define _SSG(dst, src) ureg_SSG(ureg, dst, _src(src))
-#define _CMP(dst, src0, src1, src2) ureg_CMP(ureg, dst, _src(src0), _src(src1), _src(src2))
-#define _SCS(dst, src) ureg_SCS(ureg, dst, _src(src))
-#define _TXB(dst, target, src0, src1) ureg_TXB(ureg, dst, TGSI_TEXTURE_##target, _src(src0), _src(src1))
-#define _NRM(dst, src) ureg_NRM(ureg, dst, _src(src))
-#de...