search for: attr_id

Displaying 4 results from an estimated 4 matches for "attr_id".

Did you mean: attr_gid
2005 Dec 21
2
ActiveRecord Error with << in Collection
.../app/controllers/cmdb_controller.rb:24:in `new'' #{RAILS_ROOT}/app/controllers/cmdb_controller.rb:24:in `create'' =============== Controller ================= def create @ci = ConfigurationItem.new(params[:ci]) if(params[:attribute_id]) params[:attribute_id].each_pair{ |attr_id, |attr_value_id| attribute = ConfigurationItemAttributeValue.new attribute.attribute_id= attr_id attribute.value_id= attr_value_id @ci.attributes << attribute } end if(params[:attribute_value]) params[:attribute_value].each_pair{ |attr_id, |attr_value| attribu...
2006 Dec 05
7
Dynamic # of Attributes for a Model (key/val table) Get/Set?
...ave user defined attributes, such as: color, size, weight. More attributes can be added at any time. Since these attributes are not known ahead of time, they cannot be created as columns. My table structure (simplified): products -------- id name attrs -------- id name product_attrs -------- id attr_id value And some sample code: ## Create some attributes ## 1 - size ## 2 - color ## 3 - weight [''size'',''color'',''weight''].each do |attr| Attr.create( { ''name'' => attr } ) end ## Create a new product p = Product.ne...
2017 Jan 05
3
[PATCH net-next] net: make ndo_get_stats64 a void function
...ers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c index 850378893b25..2c864574a9d5 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -374,13 +374,12 @@ int mlx5e_get_offload_stats(int attr_id, const struct net_device *dev, return -EINVAL; } -static struct rtnl_link_stats64 * +static void mlx5e_rep_get_stats(struct net_device *dev, struct rtnl_link_stats64 *stats) { struct mlx5e_priv *priv = netdev_priv(dev); memcpy(stats, &priv->stats.vf_vport, sizeof(*stats)); - ret...
2017 Jan 05
3
[PATCH net-next] net: make ndo_get_stats64 a void function
...ers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c index 850378893b25..2c864574a9d5 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -374,13 +374,12 @@ int mlx5e_get_offload_stats(int attr_id, const struct net_device *dev, return -EINVAL; } -static struct rtnl_link_stats64 * +static void mlx5e_rep_get_stats(struct net_device *dev, struct rtnl_link_stats64 *stats) { struct mlx5e_priv *priv = netdev_priv(dev); memcpy(stats, &priv->stats.vf_vport, sizeof(*stats)); - ret...