search for: _name

Displaying 20 results from an estimated 155 matches for "_name".

Did you mean: name
2012 Jun 16
3
[LLVMdev] Building lld with Visual Studio 2012 RC
..., but it seems the bzero function is not available. Could memset be used instead of bzero? Or maybe define a bzero for msvc using memset. For example: // in-memory matches on-disk, so copy first fields followed by path ::memcpy(to, (uint8_t*)&cmd, 12); ::memcpy(&to[12], _name.data(), _name.size()); ::bzero(&to[12+_name.size()], cmdsize-(12+_name.size())); The bzero line could be changed to: ::memset(&to[12+_name.size()], 0, cmdsize-(12+_name.size())); Thanks a lot for the attention and congratulations for the great work!!! Best regards Mello --------...
2007 May 10
5
removing string restrictions
We've previously discussed if we should add some sort of selection option type and not use string options and string restrictions for that purpose. I don't think we need a new option type for this. The integer type should do just fine. The attached patch changes the blur plugin's filter option from string to integer type and adds the relevant metadata. I suggest that we change all
2012 Jun 17
0
[LLVMdev] Building lld with Visual Studio 2012 RC
...vailable. > > Could memset be used instead of bzero? Or maybe define a bzero for msvc > using memset. > > For example: > >       // in-memory matches on-disk, so copy first fields followed by path >       ::memcpy(to, (uint8_t*)&cmd, 12); >       ::memcpy(&to[12], _name.data(), _name.size()); >       ::bzero(&to[12+_name.size()], cmdsize-(12+_name.size())); > > The bzero line could be changed to: > >  ::memset(&to[12+_name.size()], 0, cmdsize-(12+_name.size())); > > Thanks a lot for the attention and congratulations for the great work!...
2019 Sep 23
2
[PATCH 2/6] mdev: introduce device specific ops
...e)(struct kobject *kobj, struct device *dev, 7b96953bc640b6 Kirti Wankhede 2016-11-17 72 const char *buf, size_t count); 7b96953bc640b6 Kirti Wankhede 2016-11-17 73 }; 7b96953bc640b6 Kirti Wankhede 2016-11-17 74 7b96953bc640b6 Kirti Wankhede 2016-11-17 75 #define MDEV_TYPE_ATTR(_name, _mode, _show, _store) \ 7b96953bc640b6 Kirti Wankhede 2016-11-17 76 struct mdev_type_attribute mdev_type_attr_##_name = \ 7b96953bc640b6 Kirti Wankhede 2016-11-17 77 __ATTR(_name, _mode, _show, _store) 7b96953bc640b6 Kirti Wankhede 2016-11-17 78 #define MDEV_TYPE_ATTR_RW(_name) \ 7b...
2019 Sep 23
2
[PATCH 2/6] mdev: introduce device specific ops
...e)(struct kobject *kobj, struct device *dev, 7b96953bc640b6 Kirti Wankhede 2016-11-17 72 const char *buf, size_t count); 7b96953bc640b6 Kirti Wankhede 2016-11-17 73 }; 7b96953bc640b6 Kirti Wankhede 2016-11-17 74 7b96953bc640b6 Kirti Wankhede 2016-11-17 75 #define MDEV_TYPE_ATTR(_name, _mode, _show, _store) \ 7b96953bc640b6 Kirti Wankhede 2016-11-17 76 struct mdev_type_attribute mdev_type_attr_##_name = \ 7b96953bc640b6 Kirti Wankhede 2016-11-17 77 __ATTR(_name, _mode, _show, _store) 7b96953bc640b6 Kirti Wankhede 2016-11-17 78 #define MDEV_TYPE_ATTR_RW(_name) \ 7b...
2012 Jun 17
3
[LLVMdev] Building lld with Visual Studio 2012 RC
...used instead of bzero? Or maybe define a bzero for msvc > > using memset. > > > > For example: > > > > // in-memory matches on-disk, so copy first fields followed by path > > ::memcpy(to, (uint8_t*)&cmd, 12); > > ::memcpy(&to[12], _name.data(), _name.size()); > > ::bzero(&to[12+_name.size()], cmdsize-(12+_name.size())); > > > > The bzero line could be changed to: > > > > ::memset(&to[12+_name.size()], 0, cmdsize-(12+_name.size())); > > > > Thanks a lot for the attention and...
2019 Sep 23
0
[PATCH 2/6] mdev: introduce device specific ops
...obj, struct device *dev, > 7b96953bc640b6 Kirti Wankhede 2016-11-17 72 const char *buf, size_t count); > 7b96953bc640b6 Kirti Wankhede 2016-11-17 73 }; > 7b96953bc640b6 Kirti Wankhede 2016-11-17 74 > 7b96953bc640b6 Kirti Wankhede 2016-11-17 75 #define MDEV_TYPE_ATTR(_name, _mode, _show, _store) \ > 7b96953bc640b6 Kirti Wankhede 2016-11-17 76 struct mdev_type_attribute mdev_type_attr_##_name = \ > 7b96953bc640b6 Kirti Wankhede 2016-11-17 77 __ATTR(_name, _mode, _show, _store) > 7b96953bc640b6 Kirti Wankhede 2016-11-17 78 #define MDEV_TYPE_ATTR...
2006 Jan 20
1
Calling MySQL 5 stored procedures from app_mysql
...ension (macro-local, s, 8) exited non-zero on 'IAX2/100-3' in macro 'local' == Spawn extension (users, 123, 1) exited non-zero on 'IAX2/100-3' -- Hungup 'IAX2/100-3' So it found 1 peer. Now trying to call a procedure: CREATE PROCEDURE p_pbxuser_user_data1(IN _name VARCHAR(20)) BEGIN SELECT vm_active FROM peer,voicemail,pbxuser WHERE peer.name = _name AND voicemail.mailbox = _name and pbxuser.peer_name = _name; Result: -- Executing Macro("IAX2/100-5", "local|100") in new stack -- Executing MYSQL("IAX2/100-5",...
2008 Dec 25
0
[PATCH 1/4] dom0 linux: Expose HID, UID, SEG, BBN of PCI root bridge via sysfs.
...atic void acpi_device_unregister(struct acpi_device *device, int type) @@ -343,10 +374,6 @@ -------------------------------------------------------------------------- */ static ssize_t acpi_eject_store(struct acpi_device *device, const char *buf, size_t count); - -#define ACPI_DEVICE_ATTR(_name,_mode,_show,_store) \ -static struct acpi_device_attribute acpi_device_attr_##_name = \ - __ATTR(_name, _mode, _show, _store) ACPI_DEVICE_ATTR(eject, 0200, NULL, acpi_eject_store); diff -r 618fc299e2f1 -r 4769a6db78f5 include/acpi/acpi_bus.h --- a/include/acpi/acpi_bus.h Thu Dec 18 11:51:36 2...
2007 Jun 20
0
[PATCH] linux-2.6.18: utilize SYS_HYPERVISOR config option
...fs.h =================================================================== --- head-2007-05-31.orig/include/xen/hypervisor_sysfs.h 2007-06-06 17:04:59.000000000 +0200 +++ head-2007-05-31/include/xen/hypervisor_sysfs.h 2007-06-04 13:43:51.000000000 +0200 @@ -20,8 +20,6 @@ static struct hyp_sysfs_attr _name##_at static struct hyp_sysfs_attr _name##_attr = \ __ATTR(_name, 0644, _name##_show, _name##_store) -extern struct subsystem hypervisor_subsys; - struct hyp_sysfs_attr { struct attribute attr; ssize_t (*show)(struct hyp_sysfs_attr *, char *); __________________________________________...
2009 Sep 28
7
Basic Rails problem with has_many nil values and permalinks
...y with has_many. I find the property and then I need to find the name of the building or the neighborhood that the property belongs to. The property is not always assigned a building or neighborhood. This becomes a problem when createing permalinks with permalink_fu. has_permalink [:neighborhood_name, :building_name, :address] The neighborhood name and building name are defined here in property.rb def neighborhood_name neighborhood.name end def building_name building.name end If the property does not have a neighborhood or a building, then I get an error: The error occu...
2010 Jan 29
1
create an R object in a loop
...ect[cat]) names(TO_POS_Asfc.median_cotautx) <- levels(factor(select[[cat]])) } ----- What I want to do is, instead of giving manually the name of the list (here TO_POS_Asfc.median_cotautx), I would like the name of the list to be created in the loop too, so that it looks like: select[[cat]]_name.num_specbone. In the code it would look like: ----- select[[cat]]_name.num_specbone <- fac2list(select[,k], select[cat]) #create the list from the values of these variables at each iteration of the loop names(select[[cat]]_name.num_specbone) <- levels(factor(select[[cat]])) ----- I thought...
2006 May 31
7
How do you create a controller & view to create a list of objects?
...Name: [_______________________] Bar #5 Name: [_______________________] So, trying to follow the example from http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html, I added this to app/views/foos/_form.rhtml: <% 5.times do |i| %> <p><label for="bar_<%= i %>_name"/><br/> <%= text_field ''bar[]'', ''name'' %></p> <% end %> But I get this error: You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occured while evaluating...
2014 Mar 19
5
[PATCH] virtio-blk: make the queue depth configurable
...module_param_cb() */ #define module_param_call(name, set, get, arg, perm) \ diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 30b2ebee6439..f517e6e488c8 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -71,7 +71,8 @@ struct attribute_group { */ #define __ATTR(_name, _mode, _show, _store) { \ - .attr = {.name = __stringify(_name), .mode = _mode }, \ + .attr = {.name = __stringify(_name), \ + .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ .show = _show, \ .store = _store, \ }
2014 Mar 19
5
[PATCH] virtio-blk: make the queue depth configurable
...module_param_cb() */ #define module_param_call(name, set, get, arg, perm) \ diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h index 30b2ebee6439..f517e6e488c8 100644 --- a/include/linux/sysfs.h +++ b/include/linux/sysfs.h @@ -71,7 +71,8 @@ struct attribute_group { */ #define __ATTR(_name, _mode, _show, _store) { \ - .attr = {.name = __stringify(_name), .mode = _mode }, \ + .attr = {.name = __stringify(_name), \ + .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ .show = _show, \ .store = _store, \ }
2007 Mar 27
0
[PATCH] make all performance counter per-cpu
...M_DEFNS_H__ #define __X86_32_ASM_DEFNS_H__ +#include <asm/percpu.h> + #ifndef NDEBUG /* Indicate special exception stack frame by inverting the frame pointer. */ #define SETUP_EXCEPTION_FRAME_POINTER \ @@ -47,10 +49,14 @@ 1: #ifdef PERF_COUNTERS -#define PERFC_INCR(_name,_idx) \ - lock incl perfcounters+_name(,_idx,4) +#define PERFC_INCR(_name,_idx,_cur) \ + pushl _cur; \ + movl VCPU_processor(_cur),_cur; \ + shll $PERCPU_SHIFT,_cur;...
2020 Apr 14
0
[PATCH v2 08/33] iommu: Move default domain allocation to iommu_probe_device()
...t __iommu_attach_device(struct iommu_domain *domain, + struct device *dev); +static int __iommu_attach_group(struct iommu_domain *domain, + struct iommu_group *group); +static void __iommu_detach_group(struct iommu_domain *domain, + struct iommu_group *group); + #define IOMMU_GROUP_ATTR(_name, _mode, _show, _store) \ struct iommu_group_attribute iommu_group_attr_##_name = \ __ATTR(_name, _mode, _show, _store) @@ -221,10 +231,29 @@ int iommu_probe_device(struct device *dev) goto err_free_dev_param; } - if (ops->probe_device) + if (ops->probe_device) { + struct iommu_gr...
2014 Mar 19
0
[PATCH] virtio-blk: make the queue depth configurable
...set, get, arg, perm) \ > diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h > index 30b2ebee6439..f517e6e488c8 100644 > --- a/include/linux/sysfs.h > +++ b/include/linux/sysfs.h > @@ -71,7 +71,8 @@ struct attribute_group { > */ > > #define __ATTR(_name, _mode, _show, _store) { \ > - .attr = {.name = __stringify(_name), .mode = _mode }, \ > + .attr = {.name = __stringify(_name), \ > + .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ >...
2008 Nov 07
0
[PATCH][cfq-cgroups] Introduce ioprio class for top layer.
...\ + kfree(buffer); \ +out: \ + return ret; \ } +WRITE_FUNCTION(cfq_cgroup_ioprio_write, ioprio, 0, CFQ_CGROUP_MAX_IOPRIO); +WRITE_FUNCTION(cfq_cgroup_ioprio_class_write, ioprio_class, 0, + IOPRIO_CLASS_IDLE); +#undef WRITE_FUNCTION + +#define CFQ_CGROUP_CTYPE_ATTR(_name) \ + { \ + .name = (__stringify(_name)), \ + .read = cfq_cgroup_##_name##_read, \ + .write = cfq_cgroup_##_name##_write, \ + } static struct cftype files[] = { - { - .name = "ioprio", - .read = cfq_cgroup_read, - .write = cfq_cgroup_write, - }, + CFQ_CGROUP_CTYPE_ATTR(iop...
2008 Nov 07
0
[PATCH][cfq-cgroups] Introduce ioprio class for top layer.
...\ + kfree(buffer); \ +out: \ + return ret; \ } +WRITE_FUNCTION(cfq_cgroup_ioprio_write, ioprio, 0, CFQ_CGROUP_MAX_IOPRIO); +WRITE_FUNCTION(cfq_cgroup_ioprio_class_write, ioprio_class, 0, + IOPRIO_CLASS_IDLE); +#undef WRITE_FUNCTION + +#define CFQ_CGROUP_CTYPE_ATTR(_name) \ + { \ + .name = (__stringify(_name)), \ + .read = cfq_cgroup_##_name##_read, \ + .write = cfq_cgroup_##_name##_write, \ + } static struct cftype files[] = { - { - .name = "ioprio", - .read = cfq_cgroup_read, - .write = cfq_cgroup_write, - }, + CFQ_CGROUP_CTYPE_ATTR(iop...