Displaying 5 results from an estimated 5 matches for "set_ipaddr".
Did you mean:
net_ip2addr
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...>addObject(mgmt_object);
- syncQMFObject();
-}
-
-void NICWrapper::cleanupQMFObject(void)
-{
- mgmt_object->resourceDestroy();
-}
-
-void NICWrapper::syncQMFObject(void)
-{
- mgmt_object->set_interface(interfaceName);
- mgmt_object->set_macaddr(macaddr);
- mgmt_object->set_ipaddr(ipaddr);
- mgmt_object->set_netmask(netmask);
- mgmt_object->set_broadcast(broadcast);
- mgmt_object->set_bandwidth(bandwidth);
-}
-
-NICWrapper *NICWrapper::getNIC(ManagementAgent *agent,
- LibHalContext *hal_ctx,
- char *nic_handle)
-{
- //...
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were
removed with this patch. So, I'm pushing an updated patch that contains
none of the HAL code in it.
2013 Jul 25
0
[PATCH 1/5] Intel MIC Host Driver for X100 family.
..., struct device_attribute *attr, char *buf)
+{
+ struct mic_device *mdev = dev_get_drvdata(dev->parent);
+ char *ipaddr;
+
+ if (!mdev)
+ return -EINVAL;
+
+ ipaddr = mdev->ipaddr;
+
+ if (ipaddr)
+ return snprintf(buf, PAGE_SIZE, "%s\n", ipaddr);
+ return 0;
+}
+
+static ssize_t
+set_ipaddr(struct device *dev, struct device_attribute *attr,
+ const char *buf, size_t count)
+{
+ struct mic_device *mdev = dev_get_drvdata(dev->parent);
+
+ if (!mdev)
+ return -EINVAL;
+
+ kfree(mdev->ipaddr);
+
+ mdev->ipaddr = kzalloc(count + 1, GFP_KERNEL);
+ if (!mdev->ipaddr)
+ return -...
2013 Jul 25
16
[PATCH 0/5] Enable Drivers for Intel MIC X100 Coprocessors.
An Intel MIC X100 device is a PCIe form factor add-in coprocessor
card based on the Intel Many Integrated Core (MIC) architecture
that runs a Linux OS. It is a PCIe endpoint in a platform and therefore
implements the three required standard address spaces i.e. configuration,
memory and I/O. The host OS loads a device driver as is typical for
PCIe devices. The card itself runs a bootstrap after
2013 Jul 25
16
[PATCH 0/5] Enable Drivers for Intel MIC X100 Coprocessors.
An Intel MIC X100 device is a PCIe form factor add-in coprocessor
card based on the Intel Many Integrated Core (MIC) architecture
that runs a Linux OS. It is a PCIe endpoint in a platform and therefore
implements the three required standard address spaces i.e. configuration,
memory and I/O. The host OS loads a device driver as is typical for
PCIe devices. The card itself runs a bootstrap after