Displaying 20 results from an estimated 30 matches for "read_str".
Did you mean:
read_smb
2017 Apr 17
0
[PATCH v2 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string
This patch introduces the nouveau_hwmon_ops structure, sets up
.is_visible and .read_string operations and adds all the functions
for these operations.
This is also a preparation for the next patches, where most of the
work is being done.
This code doesn't interacture with the old one.
It's just to make easier the review of all patches.
---
drivers/gpu/drm/nouveau/nouveau_hwmo...
2017 Apr 26
0
[PATCH v5 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string
This patch introduces the nouveau_hwmon_ops structure, sets up
.is_visible and .read_string operations and adds all the functions
for these operations.
This is also a preparation for the next patches, where most of the
work is being done.
This code doesn't interacture with the old one.
It's just to make easier the review of all patches.
Signed-off-by: Oscar Salvador <osalva...
2017 Apr 22
0
[PATCH v4 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string
This patch introduces the nouveau_hwmon_ops structure, sets up
.is_visible and .read_string operations and adds all the functions
for these operations.
This is also a preparation for the next patches, where most of the
work is being done.
This code doesn't interacture with the old one.
It's just to make easier the review of all patches.
Signed-off-by: Oscar Salvador <osalva...
2017 May 18
0
[PATCH v8 2/5] nouveau/hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string
This patch introduces the nouveau_hwmon_ops structure, sets up
.is_visible and .read_string operations and adds all the functions
for these operations.
This is also a preparation for the next patches, where most of the
work is being done.
This code doesn't interacture with the old one.
It's just to make easier the review of all patches.
Signed-off-by: Oscar Salvador <osalva...
2017 Apr 20
0
[PATCH v2 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string
...}
Could you drop me a hint?
On 18 April 2017 at 09:56, Karol Herbst <karolherbst at gmail.com> wrote:
> 2017-04-17 9:47 GMT+02:00 Oscar Salvador <osalvador.vilardaga at gmail.com>:
>> This patch introduces the nouveau_hwmon_ops structure, sets up
>> .is_visible and .read_string operations and adds all the functions
>> for these operations.
>> This is also a preparation for the next patches, where most of the
>> work is being done.
>> This code doesn't interacture with the old one.
>> It's just to make easier the review of all patch...
2009 Jun 02
9
XML::LibXML::Reader
is there anybody who knows how we can get child values using libxml
(Reader class)
def xml_import_to_brands
require''xml''
reader = XML::Reader.file(''c:/brands.xml'')
.
.
.
2017 May 02
1
[PATCH v5 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string
On 26/04/17 19:46, Oscar Salvador wrote:
> This patch introduces the nouveau_hwmon_ops structure, sets up
> .is_visible and .read_string operations and adds all the functions
> for these operations.
> This is also a preparation for the next patches, where most of the
> work is being done.
> This code doesn't interacture with the old one.
> It's just to make easier the review of all patches.
>
> Signe...
2017 Apr 18
2
[PATCH v2 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string
2017-04-17 9:47 GMT+02:00 Oscar Salvador <osalvador.vilardaga at gmail.com>:
> This patch introduces the nouveau_hwmon_ops structure, sets up
> .is_visible and .read_string operations and adds all the functions
> for these operations.
> This is also a preparation for the next patches, where most of the
> work is being done.
> This code doesn't interacture with the old one.
> It's just to make easier the review of all patches.
> ---
> d...
2023 Apr 07
1
[PATCH] vdpa: solidrun: constify pointers to hwmon_channel_info
...--git a/drivers/vdpa/solidrun/snet_hwmon.c b/drivers/vdpa/solidrun/snet_hwmon.c
> index e695e36ff753..65304354b34a 100644
> --- a/drivers/vdpa/solidrun/snet_hwmon.c
> +++ b/drivers/vdpa/solidrun/snet_hwmon.c
> @@ -159,7 +159,7 @@ static const struct hwmon_ops snet_hwmon_ops = {
> .read_string = snet_hwmon_read_string
> };
>
> -static const struct hwmon_channel_info *snet_hwmon_info[] = {
> +static const struct hwmon_channel_info * const snet_hwmon_info[] = {
> HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_CRIT | HWMON_T_LABEL,
> HWMO...
2014 Jun 03
2
Re: libguestfs supermin error
Hi Rich
But there is no src/kernel.ml file on my ubuntu powerpc to which the
above patch is reffering.
I have installed supermin as supermin_5.1.8-2_powerpc.deb debian package.
Thanks
On Tue, Jun 3, 2014 at 7:16 PM, Richard W.M. Jones <rjones@redhat.com>
wrote:
> On Tue, Jun 03, 2014 at 06:55:49PM +0530, abhishek jain wrote:
> > supermin: failed to find a suitable kernel
2017 May 18
7
[PATCH v8 0/5] replace hwmon_device_register for hwmon_device_register_with_info
...patchseries replaces the deprecated hwmon_device_register function with the
new one hwmon_device_register_with_info.
It also does some cleanup.
Oscar Salvador (5):
nouveau/hwmon: Add config for all sensors and their settings
nouveau/hwmon: Add nouveau_hwmon_ops structure with
.is_visible/.read_string
nouveau/hwmon: Remove old code, add .write/.read operations
nouveau/hwmon: expose the auto_point and pwm_min/max attrs
nouveau/hwmon: Change permissions to numeric
drivers/gpu/drm/nouveau/nouveau_hwmon.c | 983 +++++++++++++++-----------------
1 file changed, 464 insertions(+), 519 delet...
2023 Apr 10
1
[PATCH] vdpa: solidrun: constify pointers to hwmon_channel_info
...c b/drivers/vdpa/solidrun/snet_hwmon.c
>>> index e695e36ff753..65304354b34a 100644
>>> --- a/drivers/vdpa/solidrun/snet_hwmon.c
>>> +++ b/drivers/vdpa/solidrun/snet_hwmon.c
>>> @@ -159,7 +159,7 @@ static const struct hwmon_ops snet_hwmon_ops = {
>>> .read_string = snet_hwmon_read_string
>>> };
>>> -static const struct hwmon_channel_info *snet_hwmon_info[] = {
>>> +static const struct hwmon_channel_info * const snet_hwmon_info[] = {
>>> HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_CRIT | HWMON_...
2014 Jun 04
2
Re: libguestfs supermin error
...Linux kernel
> * >518 leshort >0x1ff
> * >>(526.s+0x200) string >\0 version %s,
> *
> * Bugs: probably limited to x86 kernels.
> *)
> and get_kernel_version_from_file file =
> try
> let chan = open_in file in
> let buf = read_string chan 514 4 in
> if buf <> "HdrS" then (
> close_in chan;
> raise Not_found
> );
> let s = read_leshort chan 518 in
> if s < 0x1ff then (
> close_in chan;
> raise Not_found
> );
> let offset = read_le...
2005 Jul 27
2
SWIGging ConfigBase
...re out a few
general SWIG things then I think most of it will work. Apols for the
noob swig questions.
The C++ class has lots of overloaded methods called Read, which return
different kinds of values. In wxruby-not-swig these are implemented as
read, read_bool, read_int and so on. read() means read_string(). In ruby
the methods read
config_value = conf.read_bool(key, default)
but in C++ it''s
bool Read(const wxString& key , bool* d , bool defaultVal ) const;
There''s also versions that receive just two arguments, the key and a
reference to a typed variable that holds...
2017 Apr 13
2
[PATCH 1/4] nouveau_hwmon: migrate to hwmon_device_register_with_info
...veau_input_is_visible(data, attr, channel);
+ case hwmon_pwm:
+ return nouveau_pwm_is_visible(data, attr, channel);
+ case hwmon_power:
+ return nouveau_power_is_visible(data, attr, channel);
+ default:
+ return 0;
+ }
+}
+
+static char *input_label = "GPU core";
+
+static int
+nouveau_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr,
+ int channel, char **buf)
+{
+ if (type == hwmon_in && attr == hwmon_in_label) {
+ *buf = input_label;
+ return 0;
+ }
+
+ return -EOPNOTSUPP;
+}
+
+static const struct hwmon_ops nouveau_hwmon_ops = {
+ .is_visible = no...
2017 Apr 17
9
[PATCH v2 0/5] replace hwmon_device_register for hwmon_device_register_with_info
...ings. This patch
and the next one are just preparing the code for what it comes.
2/ Now everything goes through nouveua_hwmon_ops. There we set up wich functions will
be called for read/write and for checking if an attribute should be created or not.
In this patch we just add .is_visible/.read_string operations.
Here we sill don't interactuate with the old code.
3/ Most of the work is being done here. We remove the old code and replace it with
the new one related to the new api.
Here we introduce the .write and .read operations, and create all functions
regarding these opera...
2017 Apr 22
6
[PATCH v4 0/5] replace hwmon_device_register for hwmon_device_register_with_info
...patchseries replaces the deprecated hwmon_device_register function with the
new one hwmon_device_register_with_info.
It also does some cleanup.
Oscar Salvador (5):
nouveau_hwmon: Add config for all sensors and their settings
nouveau_hwmon: Add nouveau_hwmon_ops structure with
.is_visible/.read_string
nouveau_hwmon: Remove old code, add .write/.read operations
nouveau_hwmon: Add support for auto_point attributes
nouveau_hwmon: Change permissions to numeric
drivers/gpu/drm/nouveau/nouveau_hwmon.c | 954 +++++++++++++++++---------------
1 file changed, 500 insertions(+), 454 deletions(-...
2017 May 16
7
[PATCH v7 0/5] replace hwmon_device_register for hwmon_device_register_with_info
...patchseries replaces the deprecated hwmon_device_register function with the
new one hwmon_device_register_with_info.
It also does some cleanup.
Oscar Salvador (5):
nouveau/hwmon: Add config for all sensors and their settings
nouveau/hwmon: Add nouveau_hwmon_ops structure with
.is_visible/.read_string
nouveau/hwmon: Remove old code, add .write/.read operations
nouveau/hwmon: expose the auto_point and pwm_min/max attrs
nouveau/hwmon: Change permissions to numeric
drivers/gpu/drm/nouveau/nouveau_hwmon.c | 979 +++++++++++++++-----------------
1 file changed, 460 insertions(+), 519 delet...
2017 Apr 21
6
[PATCH v3 0/5] replace hwmon_device_register for hwmon_device_register_with_info
...ings. This patch
and the next one are just preparing the code for what it comes.
2/ Now everything goes through nouveua_hwmon_ops. There we set up wich functions will
be called for read/write and for checking if an attribute should be created or not.
In this patch we just add .is_visible/.read_string operations.
Here we sill don't interactuate with the old code.
3/ Most of the work is being done here. We remove the old code and replace it with
the new one related to the new api.
Here we introduce the .write and .read operations, and create all functions
regarding these opera...
2017 May 16
0
[PATCH v7 0/5] replace hwmon_device_register for hwmon_device_register_with_info
...wmon_device_register function with the
> new one hwmon_device_register_with_info.
> It also does some cleanup.
>
> Oscar Salvador (5):
> nouveau/hwmon: Add config for all sensors and their settings
> nouveau/hwmon: Add nouveau_hwmon_ops structure with
> .is_visible/.read_string
> nouveau/hwmon: Remove old code, add .write/.read operations
> nouveau/hwmon: expose the auto_point and pwm_min/max attrs
> nouveau/hwmon: Change permissions to numeric
>
> drivers/gpu/drm/nouveau/nouveau_hwmon.c | 979 +++++++++++++++-----------------
> 1 file ch...