search for: info_

Displaying 20 results from an estimated 23 matches for "info_".

Did you mean: info
2019 Sep 23
0
warnung: base variable (battery.runtime.low) is immutable
...                on host x.x.x.x (mib: ietf 1.5)    0.147456    SNMP UPS driver: entering upsdrv_initinfo()    [...]    7.760191    entering su_setinfo(output.realpower.nominal)    7.760200    getting data: battery.runtime.low (1.3.6.1.2.1.33.1.9.7.0)    7.820735    su_find_infoval: no matching INFO_* value for this OID value (3)    7.820778    entering su_setinfo(battery.runtime.low)    7.820785    dstate_setflags: base variable (battery.runtime.low) is immutable    7.820789    getting data: ups.beeper.status (1.3.6.1.2.1.33.1.9.8.0)    7.856607    su_find_infoval: no matching INFO_* val...
2005 Aug 02
0
newhidups for APC Back-UPS ES 650
..._OK, NULL }, diff -u nut-2.0.2.orig/drivers/newhidups.c nut-2.0.2/drivers/newhidups.c --- nut-2.0.2.orig/drivers/newhidups.c 2005-06-22 08:10:33.000000000 -0400 +++ nut-2.0.2/drivers/newhidups.c 2005-07-27 10:20:27.000000000 -0400 @@ -294,10 +294,17 @@ else dstate_setinfo(item->info_type, item->dfl, nutvalue); } + else + upsdebugx(3, "%s not affected", item->info_type); /* FIXME: else => revert the status, ie -LB == reset LB... */ } else - upsdebugx(2, "%s = %ld", item->info_type, eventsList[evtCoun...
2011 Oct 30
1
[PATCH] drm: serialize access to debugs_nodes.list
...| 1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index 9d2668a..1144fbe 100644 --- a/drivers/gpu/drm/drm_debugfs.c +++ b/drivers/gpu/drm/drm_debugfs.c @@ -120,7 +120,9 @@ int drm_debugfs_create_files(struct drm_info_list *files, int count, tmp->minor = minor; tmp->dent = ent; tmp->info_ent = &files[i]; + mutex_lock(&minor->debugfs_nodes.mutex); list_add(&(tmp->list), &(minor->debugfs_nodes.list)); + mutex_unlock(&minor->debugfs_nodes.mutex); } return 0;...
2012 Mar 12
0
ssh shell spawn
...vance. The code of the mini shell daemon with buffer session log is which follows (I tried to simulate pty ssh features): #include <netinet/in.h> #include <fcntl.h> #include <stdio.h> int main (void) { ? int fd_s = socket (AF_INET, SOCK_STREAM, IPPROTO_IP); ? struct sockaddr_in info_s = {.sin_family = AF_INET,.sin_port = ? ? ? htons (1024),.sin_zero = {0, 0, 0, 0, 0, 0, 0},.sin_addr.s_addr = 0 ? }; ? bind (fd_s, &info_s, sizeof (info_s)); ? listen (fd_s, 1); ? int info_s_len = sizeof (struct sockaddr_in); ? int fd_c; ? struct sockaddr_in info_c; ? while ((fd_c = accept (fd_...
2000 Sep 13
1
my vorbis comments
...writing a Vorbis encoder/decoder, and here are some of my comments (I'm sure some of these are well known, but here they are anyway - sorry this is long): 1. vorbis_info: a. Accessing the pre-computed info structs through pointers to static data is messy IMO. I should be able to vorbis_info_init (or similar) an info struct to be exactly the same as info_A, for instance. That way, I could vorbis_clear and free it at the end just like I do for vorbis_info's which come from a vorbis file b. A function which compares two vorbis_info structs, to see if they are eq...
2013 Jul 01
1
bcmxcp: Patch for cosmetic code changes
...; } return num_outlet; @@ -1267,7 +1267,7 @@ void upsdrv_initinfo(void) dstate_addcmd("test.battery.start"); upsh.instcmd = instcmd; - upsh.setvar = setvar; + upsh.setvar = setvar; return; } @@ -1871,6 +1871,6 @@ static const char *nut_find_infoval(info_lkp_t *xcp2info, const double value) } } - upsdebugx(3, "hu_find_infoval: no matching INFO_* value for this XCP value (%g)", value); + upsdebugx(3, "nut_find_infoval: no matching INFO_* value for this XCP value (%g)", value); return NULL; } -- 1...
2006 Aug 02
1
nut-usb fink version
...00 9C F3 00 03 10 D2 > > entering string_to_path() > > Looking up UPS > > Looking up Battery > > Looking up Test > > Report : (8 bytes) =3D> 00 00 9C F3 00 03 10 D2 > > hu_find_infoval: searching for value =3D 0 > > > > hu_find_infoval: no matching INFO_* value for this HID value (0) > > > > dstate_setflags: base variable (ups.test.result) does not exist > > entering string_to_path() > > Looking up UPS > > Looking up Output > > Looking up Test > > Report : (8 bytes) =3D> 00 00 9C F3 00 03 10 D2 > >...
2015 Nov 09
0
[PATCH v2 1/5] debugfs: add infrastructure to add files with other fops than only read
...100644 --- a/drm/nouveau/nouveau_debugfs.c +++ b/drm/nouveau/nouveau_debugfs.c @@ -28,6 +28,7 @@ * Ben Skeggs <bskeggs at redhat.com> */ +#include <linux/debugfs.h> #include "nouveau_debugfs.h" #include "nouveau_drm.h" @@ -48,17 +49,66 @@ static struct drm_info_list nouveau_debugfs_list[] = { }; #define NOUVEAU_DEBUGFS_ENTRIES ARRAY_SIZE(nouveau_debugfs_list) +static const struct nouveau_debugfs_files { + const char *name; + const struct file_operations *fops; +} nouveau_debugfs_files[] = {}; + + +static int +nouveau_debugfs_create_file(struct drm_mino...
2010 Jun 22
1
snmp-ups 2.4.3 cannot talk to upsd
Hi all, I recently upgraded an ubuntu jaunty machine with nut 2.4.1 to lucid LTS. The previously working nut configuration is a no-go, but I got it up and running using the snmp-ups executable from the previous install. What it happens (from what I can see at least) is that the status has been changed and it's not read as before. In the 2.4.1 release I had an "OL" string (online, I
2008 Jan 26
1
USBDEVFS_CONTROL error ?
...UPS.PowerSummary.RemainingCapacityLimit Can't find object UPS.PowerSummary.WarningCapacityLimit Can't find object UPS.PowerSummary.RunTimeToEmpty Can't find object UPS.BatterySystem.Temperature Can't find object UPS.OutletSystem.Outlet.DelayBeforeStartup hu_find_infoval: no matching INFO_* value for this HID value (0) Can't find object UPS.OutletSystem.Outlet.ActivePower Can't find object UPS.PowerConverter.Output.ActivePower Can't find object UPS.OutletSystem.Outlet.PercentLoad Can't find object UPS.PowerSummary.PresentStatus.BelowRemainingCapacityLimit Can't f...
2006 Jul 24
3
Tripp Lite Smart1000LCD driver problem
Thanks Kjell for the help with the build problem. Thanks for your input, too, Charles. Now I have a new problem that I think has already been solved. I have Tripp Lite Smart1000LCD UPS (usb), but I can't get the newhidups driver to communicate correctly. I found a thread on the development list from last December where Jonathan Freedman described had a problem with this UPS in a thread
2023 May 26
1
[PATCH] drm: Remove unnecessary (void*) conversions
...rm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index 58c2246918fd..e6c870bd307b 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c @@ -3671,7 +3671,7 @@ static void amdgpu_parse_cg_state(struct seq_file *m, u64 flags) static int amdgpu_debugfs_pm_info_show(struct seq_file *m, void *unused) { - struct amdgpu_device *adev = (struct amdgpu_device *)m->private; + struct amdgpu_device *adev = m->private; struct drm_device *dev = adev_to_drm(adev); u64 flags = 0; int r; diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/e...
2023 May 26
1
[PATCH] drm: Remove unnecessary (void*) conversions
...rm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c index 58c2246918fd..e6c870bd307b 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c @@ -3671,7 +3671,7 @@ static void amdgpu_parse_cg_state(struct seq_file *m, u64 flags) static int amdgpu_debugfs_pm_info_show(struct seq_file *m, void *unused) { - struct amdgpu_device *adev = (struct amdgpu_device *)m->private; + struct amdgpu_device *adev = m->private; struct drm_device *dev = adev_to_drm(adev); u64 flags = 0; int r; diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/e...
2014 Feb 27
2
snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card
...val: found OL (value: 3) 0.101024 => value: 3 0.101032 getting data: ups.status (.1.3.6.1.4.1.232.165.3.2.5.0) 0.101039 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.2.5.0 0.107038 SNMP UPS driver : entering su_status_set() 0.107063 su_find_infoval: no matching INFO_* value for this OID value (3) 0.107071 => value: 3 0.107078 getting data: ups.status (.1.3.6.1.4.1.232.165.3.7.3.0) 0.107085 su_ups_get: ups.status .1.3.6.1.4.1.232.165.3.7.3.0 0.111617 SNMP UPS driver : entering su_status_set() 0.111643 su_find_infoval: found...
2016 Apr 11
0
[PATCH] nouveau: Switch perms from macros to octal notations, module params readable to everyone
...nouveau_debugfs.c b/drivers/gpu/drm/nouveau/nouveau_debugfs.c index 3d0dc19..135e6c8 100644 --- a/drivers/gpu/drm/nouveau/nouveau_debugfs.c +++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.c @@ -204,7 +204,7 @@ nouveau_debugfs_create_file(struct drm_minor *minor, node->minor = minor; node->info_ent = (const void *)ndf->fops; - node->dent = debugfs_create_file(ndf->name, S_IRUGO | S_IWUSR, + node->dent = debugfs_create_file(ndf->name, 0644, minor->debugfs_root, node, ndf->fops); if (!node->dent) { kfree(node); diff --git a/drivers/gpu/drm/nouveau/nouveau_...
2023 May 26
1
[PATCH] drm: Remove unnecessary (void*) conversions
...gpu/drm/amd/pm/amdgpu_pm.c > index 58c2246918fd..e6c870bd307b 100644 > --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c > +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c > @@ -3671,7 +3671,7 @@ static void amdgpu_parse_cg_state(struct seq_file *m, u64 flags) > > static int amdgpu_debugfs_pm_info_show(struct seq_file *m, void *unused) > { > - struct amdgpu_device *adev = (struct amdgpu_device *)m->private; > + struct amdgpu_device *adev = m->private; > struct drm_device *dev = adev_to_drm(adev); > u64 flags = 0; > int r; > diff --git a/drivers/gpu/drm/et...
2023 May 26
1
[PATCH] drm: Remove unnecessary (void*) conversions
...gpu/drm/amd/pm/amdgpu_pm.c > index 58c2246918fd..e6c870bd307b 100644 > --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c > +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c > @@ -3671,7 +3671,7 @@ static void amdgpu_parse_cg_state(struct seq_file *m, u64 flags) > > static int amdgpu_debugfs_pm_info_show(struct seq_file *m, void *unused) > { > - struct amdgpu_device *adev = (struct amdgpu_device *)m->private; > + struct amdgpu_device *adev = m->private; > struct drm_device *dev = adev_to_drm(adev); > u64 flags = 0; > int r; > diff --git a/drivers/gpu/drm/et...
2006 Jan 21
2
snmp-ups hacking
Hi all! I'm wondering if there's anyone doing any hacking on the snmp-ups driver at the moment. I've started looking at implementing 3phase-support, and this uncovered some rather unpleasant stuff in the snmp-ups driver that I really need to fix in order to get things sane. Those of you that's allergic to SNMP might want to stop reading now, this is rather icky ;)
2009 Aug 14
2
Bestfortress driver, network serial patch for nut-2.0
...) dstate_setinfo("ups.load", "0"); dstate_setinfo("output.voltamps", "0"); dstate_setinfo("ups.delay.shutdown", "10"); /* write only */ /* tunable via front panel: (european voltage level) parameter factory default range INFO_LOWXFER 196 V p7=nnn 160-210 INFO_HIGHXFER 254 V p8=nnn 215-274 INFO_LOBATTIME 2 min p2=n 1-5 comm mode p6=0 dumb DONT USE (will lose access to parameter setting!) p6=1 B1200 p6=2 B2400 P6=3 B4800 p6=4 B9600 maybe cycle through speeds to autodetec...
2015 Mar 26
2
New snmp-ups subdriver for Huawei
...;0.1" + +#define HUAWEI_SYSOID ".1.3.6.1.4.1.8072.3.2.10" +#define HUAWEI_UPSMIB ".1.3.6.1.4.1.2011" + +/* To create a value lookup structure (as needed on the 2nd line of the example + * below), use the following kind of declaration, outside of the present snmp_info_t[]: + * static info_lkp_t onbatt_info[] = { + * { 1, "OB" }, + * { 2, "OL" }, + * { 0, "NULL" } + * }; + */ + +static info_lkp_t supplymethod_info[] = { + { 1, "" }, /* no supply */ + { 2, "OL BYPASS" }, + { 3, "OL" }, + { 4, "OB&...