search for: guid_t

Displaying 20 results from an estimated 74 matches for "guid_t".

Did you mean: uid_t
2017 May 05
2
[PATCH v1] ACPI: Switch to use generic UUID API
...ers' uuid_cmp/uuid_copy(uuid_t *, uuid_t *), similar to my > proposal. > I think with this semantic change, our proposals can reach common > grounds > and satisfy a wider group of users (i.e. filesystem developers). > > Christoph also suggested a similar treatment to typedef guid_t to > struct uuid_le. > I don't know the use cases enough to comment on that. We may go this 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 loo...
2008 Sep 02
2
SDI support works correctly (sdi.c32)
Hi, As I have not seen any confirmation yet on the list, I just wanted to let you know that sdi.c32 works fine here, at least as fine as my initial syslinux-2.11 asm patch. I only use XPe SDI images with the following structure (of course PART blob size can vary): Type Offset Size Base Address Attr ---- ------------------- -------------------
2019 Sep 23
2
[PATCH 2/6] mdev: introduce device specific ops
...struct kobject *kobj, struct device *dev, ^~~~~~~ >> include/linux/mdev.h:98:23: error: field 'driver' has incomplete type struct device_driver driver; ^~~~~~ >> include/linux/mdev.h:106:7: error: unknown type name 'guid_t' const guid_t *mdev_uuid(struct mdev_device *mdev); ^~~~~~ In file included from <command-line>:0:0: >> include/linux/vfio_mdev.h:50:47: warning: 'struct vm_area_struct' declared inside parameter list will not be visible outside of this definition or declara...
2019 Sep 23
2
[PATCH 2/6] mdev: introduce device specific ops
...struct kobject *kobj, struct device *dev, ^~~~~~~ >> include/linux/mdev.h:98:23: error: field 'driver' has incomplete type struct device_driver driver; ^~~~~~ >> include/linux/mdev.h:106:7: error: unknown type name 'guid_t' const guid_t *mdev_uuid(struct mdev_device *mdev); ^~~~~~ In file included from <command-line>:0:0: >> include/linux/vfio_mdev.h:50:47: warning: 'struct vm_area_struct' declared inside parameter list will not be visible outside of this definition or declara...
2017 May 05
2
[PATCH v1] ACPI: Switch to use generic UUID API
On Thu, May 4, 2017 at 2:21 AM, Andy Shevchenko <andriy.shevchenko at linux.intel.com> wrote: > acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16 > bytes. Instead we convert them to use uuid_le type. At the same time we > convert current users. > > acpi_str_to_uuid() becomes useless after the conversion and it's safe to > get rid of it. > > The
2017 May 05
1
[PATCH v1] ACPI: Switch to use generic UUID API
...Fri, 2017-05-05 at 10:06 +0300, Amir Goldstein wrote: [...] >> I think with this semantic change, our proposals can reach common >> grounds >> and satisfy a wider group of users (i.e. filesystem developers). >> >> Christoph also suggested a similar treatment to typedef guid_t to >> struct uuid_le. >> I don't know the use cases enough to comment on that. > > We may go this 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, summa...
2019 Sep 23
0
[PATCH 2/6] mdev: introduce device specific ops
...uct device *dev, > ^~~~~~~ > >> include/linux/mdev.h:98:23: error: field 'driver' has incomplete type > struct device_driver driver; > ^~~~~~ > >> include/linux/mdev.h:106:7: error: unknown type name 'guid_t' > const guid_t *mdev_uuid(struct mdev_device *mdev); > ^~~~~~ > In file included from <command-line>:0:0: > >> include/linux/vfio_mdev.h:50:47: warning: 'struct vm_area_struct' declared inside parameter list will not be visible outside of this d...
2019 Oct 23
0
[PATCH net-next 11/14] vsock: add multi-transports support
...odule_exit(vsock_exit); MODULE_AUTHOR("VMware, Inc."); diff --git a/net/vmw_vsock/hyperv_transport.c b/net/vmw_vsock/hyperv_transport.c index fc7e61765a4a..0ea66d87af39 100644 --- a/net/vmw_vsock/hyperv_transport.c +++ b/net/vmw_vsock/hyperv_transport.c @@ -165,6 +165,8 @@ static const guid_t srv_id_template = GUID_INIT(0x00000000, 0xfacb, 0x11e6, 0xbd, 0x58, 0x64, 0x00, 0x6a, 0x79, 0x86, 0xd3); +static bool hvs_check_transport(struct vsock_sock *vsk); + static bool is_valid_srv_id(const guid_t *id) { return !memcmp(&id->b[4], &srv_id_template.b[4], sizeof(guid_t...
2019 Sep 27
0
[RFC PATCH 10/13] vsock: add multi-transports support
...odule_exit(vsock_exit); MODULE_AUTHOR("VMware, Inc."); diff --git a/net/vmw_vsock/hyperv_transport.c b/net/vmw_vsock/hyperv_transport.c index 306310794522..94e6fc905a77 100644 --- a/net/vmw_vsock/hyperv_transport.c +++ b/net/vmw_vsock/hyperv_transport.c @@ -163,6 +163,8 @@ static const guid_t srv_id_template = GUID_INIT(0x00000000, 0xfacb, 0x11e6, 0xbd, 0x58, 0x64, 0x00, 0x6a, 0x79, 0x86, 0xd3); +static bool hvs_check_transport(struct vsock_sock *vsk); + static bool is_valid_srv_id(const guid_t *id) { return !memcmp(&id->b[4], &srv_id_template.b[4], sizeof(guid_t...
2017 May 05
0
[PATCH v1] ACPI: Switch to use generic UUID API
...to name 'neutral' helpers' uuid_cmp/uuid_copy(uuid_t *, uuid_t *), similar to my proposal. I think with this semantic change, our proposals can reach common grounds and satisfy a wider group of users (i.e. filesystem developers). Christoph also suggested a similar treatment to typedef guid_t to struct uuid_le. I don't know the use cases enough to comment on that. Cheers, Amir.
2019 Sep 17
1
[RFC PATCH 1/2] mdev: device id support
...iver { > int (*probe)(struct device *dev); > void (*remove)(struct device *dev); > struct device_driver driver; > + const struct mdev_device_id *id_table; > }; > > #define to_mdev_driver(drv) container_of(drv, struct mdev_driver, driver) > @@ -135,7 +137,7 @@ const guid_t *mdev_uuid(struct mdev_device > *mdev); > > extern struct bus_type mdev_bus_type; > > -int mdev_register_device(struct device *dev, const struct > mdev_parent_ops *ops); > +int mdev_register_vfio_device(struct device *dev, const struct > mdev_parent_ops *ops); > void...
2019 Sep 24
1
[PATCH V2 2/8] mdev: class id support
...t; }; > > #define to_mdev_driver(drv) container_of(drv, struct mdev_driver, driver) > > void *mdev_get_drvdata(struct mdev_device *mdev); > void mdev_set_drvdata(struct mdev_device *mdev, void *data); > +void mdev_set_class_id(struct mdev_device *mdev, u16 id); > const guid_t *mdev_uuid(struct mdev_device *mdev); > > extern struct bus_type mdev_bus_type; > @@ -145,4 +148,9 @@ struct device *mdev_parent_dev(struct mdev_device *mdev); > struct device *mdev_dev(struct mdev_device *mdev); > struct mdev_device *mdev_from_dev(struct device *dev); > &g...
2019 Oct 17
0
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...h +++ b/include/linux/mdev.h @@ -17,6 +17,7 @@ struct mdev_device; struct vfio_mdev_device_ops; +struct virtio_mdev_device_ops; /* * Called by the parent device driver to set the device which represents @@ -111,6 +112,8 @@ void mdev_set_drvdata(struct mdev_device *mdev, void *data); const guid_t *mdev_uuid(struct mdev_device *mdev); void mdev_set_vfio_ops(struct mdev_device *mdev, const struct vfio_mdev_device_ops *vfio_ops); +void mdev_set_virtio_ops(struct mdev_device *mdev, + const struct virtio_mdev_device_ops *virtio_ops); const void *mdev_get_dev_o...
2019 Sep 12
9
[RFC PATCH 0/2] Mdev: support mutiple kinds of devices
Hi all: During the development of virtio-mdev[1]. I find that mdev needs to be extended to support devices other than vfio mdev device. So this series tries to extend the mdev to be able to differ from different devices by: - device id and matching for mdev bus - device speicfic callbacks and move vfio callbacks there Sent for early reivew, compile test only! Thanks [1]
2019 Sep 12
9
[RFC PATCH 0/2] Mdev: support mutiple kinds of devices
Hi all: During the development of virtio-mdev[1]. I find that mdev needs to be extended to support devices other than vfio mdev device. So this series tries to extend the mdev to be able to differ from different devices by: - device id and matching for mdev bus - device speicfic callbacks and move vfio callbacks there Sent for early reivew, compile test only! Thanks [1]
2019 Sep 12
0
[RFC PATCH 1/2] mdev: device id support
...er { @@ -125,6 +126,7 @@ struct mdev_driver { int (*probe)(struct device *dev); void (*remove)(struct device *dev); struct device_driver driver; + const struct mdev_device_id *id_table; }; #define to_mdev_driver(drv) container_of(drv, struct mdev_driver, driver) @@ -135,7 +137,7 @@ const guid_t *mdev_uuid(struct mdev_device *mdev); extern struct bus_type mdev_bus_type; -int mdev_register_device(struct device *dev, const struct mdev_parent_ops *ops); +int mdev_register_vfio_device(struct device *dev, const struct mdev_parent_ops *ops); void mdev_unregister_device(struct device *dev);...
2019 Oct 17
1
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...@ > > struct mdev_device; > struct vfio_mdev_device_ops; > +struct virtio_mdev_device_ops; > > /* > * Called by the parent device driver to set the device which represents > @@ -111,6 +112,8 @@ void mdev_set_drvdata(struct mdev_device *mdev, void *data); > const guid_t *mdev_uuid(struct mdev_device *mdev); > void mdev_set_vfio_ops(struct mdev_device *mdev, > const struct vfio_mdev_device_ops *vfio_ops); > +void mdev_set_virtio_ops(struct mdev_device *mdev, > + const struct virtio_mdev_device_ops *virtio_ops); > c...
2019 Sep 24
0
[PATCH V2 2/8] mdev: class id support
...const struct mdev_class_id *id_table; }; #define to_mdev_driver(drv) container_of(drv, struct mdev_driver, driver) void *mdev_get_drvdata(struct mdev_device *mdev); void mdev_set_drvdata(struct mdev_device *mdev, void *data); +void mdev_set_class_id(struct mdev_device *mdev, u16 id); const guid_t *mdev_uuid(struct mdev_device *mdev); extern struct bus_type mdev_bus_type; @@ -145,4 +148,9 @@ struct device *mdev_parent_dev(struct mdev_device *mdev); struct device *mdev_dev(struct mdev_device *mdev); struct mdev_device *mdev_from_dev(struct device *dev); +enum { + MDEV_ID_VFIO = 1, + /*...
2019 Sep 17
2
[RFC PATCH 2/2] mdev: introduce device specific ops
...l)(struct mdev_device *mdev, unsigned int cmd, > - unsigned long arg); > - int (*mmap)(struct mdev_device *mdev, struct vm_area_struct > *vma); > + const void *device_ops; > }; > > /* interface for exporting mdev supported type attributes */ > @@ -137,7 +148,8 @@ const guid_t *mdev_uuid(struct mdev_device > *mdev); > > extern struct bus_type mdev_bus_type; > > -int mdev_register_vfio_device(struct device *dev, const struct > mdev_parent_ops *ops); > +int mdev_register_vfio_device(struct device *dev, > + const struc...
2019 Sep 17
2
[RFC PATCH 2/2] mdev: introduce device specific ops
...l)(struct mdev_device *mdev, unsigned int cmd, > - unsigned long arg); > - int (*mmap)(struct mdev_device *mdev, struct vm_area_struct > *vma); > + const void *device_ops; > }; > > /* interface for exporting mdev supported type attributes */ > @@ -137,7 +148,8 @@ const guid_t *mdev_uuid(struct mdev_device > *mdev); > > extern struct bus_type mdev_bus_type; > > -int mdev_register_vfio_device(struct device *dev, const struct > mdev_parent_ops *ops); > +int mdev_register_vfio_device(struct device *dev, > + const struc...