snippets:vmware:fedora-compiler-error
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
| snippets:vmware:fedora-compiler-error [2013/09/03 14:54] – created benh | snippets:vmware:fedora-compiler-error [2014/03/24 09:19] (aktuell) – benh | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Get VMware Player running under Fedora 18 (Kernel 3.10.*) ====== | ====== Get VMware Player running under Fedora 18 (Kernel 3.10.*) ====== | ||
| + | < | ||
| - open / | - open / | ||
| - | - add the following lines\\ < | + | - add the following lines after line 21 (sharedir=$libdir/ |
| export VMWARE_USE_SHIPPED_LIBS=force | export VMWARE_USE_SHIPPED_LIBS=force | ||
| export LD_LIBRARY_PATH=$PATH:/ | export LD_LIBRARY_PATH=$PATH:/ | ||
| </ | </ | ||
| + | - download the patch files | ||
| + | - <code bash vmblock.3.10.patch> | ||
| + | --- vmblock-only/ | ||
| + | +++ vmblock-only-patched/ | ||
| + | @@ -208,17 +208,18 @@ | ||
| + | VMBlockSetProcEntryOwner(controlProcMountpoint); | ||
| + | |||
| + | /* Create / | ||
| + | - | ||
| + | + / | ||
| + | | ||
| + | - controlProcDirEntry); | ||
| + | - if (!controlProcEntry) { | ||
| + | + controlProcDirEntry); | ||
| + | + | ||
| + | + if (controlProcEntry == NULL) { | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | } | ||
| + | |||
| + | - | ||
| + | + /* controlProcEntry-> | ||
| + | return 0; | ||
| + | } | ||
| + | |||
| + | @@ -293,7 +294,7 @@ | ||
| + | |||
| + | retval = i < 0 ? -EINVAL : blockOp(name, | ||
| + | |||
| + | - | ||
| + | + | ||
| + | |||
| + | return retval; | ||
| + | } | ||
| + | </ | ||
| + | - <code bash vmnet.3.10.patch> | ||
| + | +++ b/ | ||
| + | @@ -105,8 +105,6 @@ static Bool VNetBridgeCycleDetect(VNetJack *this, int generation); | ||
| + | | ||
| + | | ||
| + | | ||
| + | -static int VNetBridgeProcRead(char *page, char **start, off_t off, | ||
| + | - int count, int *eof, void *data); | ||
| + | | ||
| + | | ||
| + | struct sk_buff **skb, void *startOfData, | ||
| + | @@ -225,6 +223,53 @@ VNetBridgeDevCompatible(VNetBridge *bridge, | ||
| + | /* | ||
| + | *---------------------------------------------------------------------- | ||
| + | * | ||
| + | + * VNetBridgeProcShow -- | ||
| + | + * | ||
| + | + * Callback for read operation on this bridge entry in vnets proc fs. | ||
| + | + * | ||
| + | + * Results: | ||
| + | + * Length of read operation. | ||
| + | + * | ||
| + | + * Side effects: | ||
| + | + * None. | ||
| + | + * | ||
| + | + *---------------------------------------------------------------------- | ||
| + | + */ | ||
| + | + | ||
| + | +int | ||
| + | +VNetBridgeProcShow(struct seq_file *seqf, // IN/OUT: buffer to write into | ||
| + | + | ||
| + | +{ | ||
| + | + | ||
| + | + | ||
| + | + if (!bridge) { | ||
| + | + return 0; | ||
| + | + } | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | +} | ||
| + | + | ||
| + | +static int proc_bridge_open(struct inode *inode, struct file *file) | ||
| + | +{ | ||
| + | + | ||
| + | +} | ||
| + | + | ||
| + | +static const struct file_operations proc_bridge_fops = { | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | +}; | ||
| + | + | ||
| + | +/* | ||
| + | + *---------------------------------------------------------------------- | ||
| + | + * | ||
| + | * VNetBridge_Create -- | ||
| + | * | ||
| + | * Creates a bridge. Allocates struct, allocates internal device, | ||
| + | @@ -319,17 +364,14 @@ VNetBridge_Create(const char *devName, // IN: name of device (e.g., " | ||
| + | * Make proc entry for this jack. | ||
| + | */ | ||
| + | |||
| + | - | ||
| + | - & | ||
| + | + | ||
| + | + & | ||
| + | if (retval) { | ||
| + | if (retval == -ENXIO) { | ||
| + | bridge-> | ||
| + | } else { | ||
| + | goto out; | ||
| + | } | ||
| + | - } else { | ||
| + | - bridge-> | ||
| + | - bridge-> | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | @@ -1719,45 +1761,3 @@ VNetBridgeReceiveFromDev(struct sk_buff *skb, // IN: packet to receive | ||
| + | return 0; | ||
| + | } | ||
| + | |||
| + | - | ||
| + | -/* | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - * | ||
| + | - * VNetBridgeProcRead -- | ||
| + | - * | ||
| + | - * Callback for read operation on this bridge entry in vnets proc fs. | ||
| + | - * | ||
| + | - * Results: | ||
| + | - * Length of read operation. | ||
| + | - * | ||
| + | - * Side effects: | ||
| + | - * None. | ||
| + | - * | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - */ | ||
| + | - | ||
| + | -int | ||
| + | -VNetBridgeProcRead(char | ||
| + | - | ||
| + | - | ||
| + | - | ||
| + | - | ||
| + | - | ||
| + | -{ | ||
| + | - | ||
| + | - int len = 0; | ||
| + | - | ||
| + | - if (!bridge) { | ||
| + | - return len; | ||
| + | - } | ||
| + | - | ||
| + | - len += VNetPrintPort(& | ||
| + | - | ||
| + | - len += sprintf(page+len, | ||
| + | - | ||
| + | - len += sprintf(page+len, | ||
| + | - | ||
| + | - | ||
| + | - | ||
| + | - | ||
| + | -} | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -1785,21 +1785,17 @@ VNetSetMACUnique(VNetPort *port, | ||
| + | *---------------------------------------------------------------------- | ||
| + | */ | ||
| + | |||
| + | -int | ||
| + | +void | ||
| + | | ||
| + | - char | ||
| + | + struct seq_file *seqf) | ||
| + | { | ||
| + | - int len = 0; | ||
| + | - | ||
| + | read_lock(& | ||
| + | if (!jack-> | ||
| + | - len += sprintf(buf+len, | ||
| + | + seq_printf(seqf, | ||
| + | } else { | ||
| + | - len += sprintf(buf+len, | ||
| + | + seq_printf(seqf, | ||
| + | } | ||
| + | read_unlock(& | ||
| + | - | ||
| + | - | ||
| + | } | ||
| + | |||
| + | |||
| + | @@ -1819,52 +1815,48 @@ VNetPrintJack(const VNetJack *jack, // IN: jack | ||
| + | *---------------------------------------------------------------------- | ||
| + | */ | ||
| + | |||
| + | -int | ||
| + | +void | ||
| + | | ||
| + | - char | ||
| + | + struct seq_file *seqf) | ||
| + | { | ||
| + | - int len = 0; | ||
| + | + | ||
| + | |||
| + | - len += VNetPrintJack(& | ||
| + | - | ||
| + | - len += sprintf(buf+len, | ||
| + | + | ||
| + | | ||
| + | | ||
| + | |||
| + | - len += sprintf(buf+len, | ||
| + | + | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | - len += sprintf(buf+len, | ||
| + | + | ||
| + | |||
| + | if (port-> | ||
| + | - len += sprintf(buf+len, | ||
| + | + seq_printf(seqf, | ||
| + | } | ||
| + | |||
| + | if (port-> | ||
| + | - len += sprintf(buf+len, | ||
| + | + seq_printf(seqf, | ||
| + | } | ||
| + | |||
| + | if (port-> | ||
| + | - len += sprintf(buf+len, | ||
| + | + seq_printf(seqf, | ||
| + | } | ||
| + | |||
| + | if (port-> | ||
| + | - len += sprintf(buf+len, | ||
| + | + seq_printf(seqf, | ||
| + | } | ||
| + | |||
| + | if (port-> | ||
| + | - len += sprintf(buf+len, | ||
| + | + seq_printf(seqf, | ||
| + | } | ||
| + | |||
| + | if (port-> | ||
| + | - len += sprintf(buf+len, | ||
| + | + seq_printf(seqf, | ||
| + | } | ||
| + | |||
| + | - len += sprintf(buf+len, | ||
| + | - | ||
| + | - | ||
| + | + | ||
| + | } | ||
| + | |||
| + | |||
| + | --- a/hub.c | ||
| + | +++ b/hub.c | ||
| + | @@ -25,6 +25,7 @@ | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | +#include < | ||
| + | |||
| + | # | ||
| + | # | ||
| + | @@ -71,8 +72,6 @@ static void VNetHubReceive(VNetJack *this, struct sk_buff *skb); | ||
| + | | ||
| + | | ||
| + | | ||
| + | -static int VNetHubProcRead(char *page, char **start, off_t off, | ||
| + | - int count, int *eof, void *data); | ||
| + | |||
| + | | ||
| + | | ||
| + | @@ -241,6 +240,53 @@ VNetHub_AllocPvn(uint8 id[]) // IN: the PVN ID to alloc on | ||
| + | /* | ||
| + | *---------------------------------------------------------------------- | ||
| + | * | ||
| + | + * VNetHubProcShow -- | ||
| + | + * | ||
| + | + * Callback for read operation on hub entry in vnets proc fs. | ||
| + | + * | ||
| + | + * Results: | ||
| + | + * Length of read operation. | ||
| + | + * | ||
| + | + * Side effects: | ||
| + | + * None. | ||
| + | + * | ||
| + | + *---------------------------------------------------------------------- | ||
| + | + */ | ||
| + | + | ||
| + | +int | ||
| + | +VNetHubProcShow(struct seq_file | ||
| + | + void *data) | ||
| + | +{ | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + if (!jack || !jack-> | ||
| + | + return 0; | ||
| + | + } | ||
| + | + hub = (VNetHub*)jack-> | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | +} | ||
| + | + | ||
| + | +static int proc_hub_open(struct inode *inode, struct file *file) | ||
| + | +{ | ||
| + | + | ||
| + | +} | ||
| + | + | ||
| + | +static const struct file_operations proc_hub_fops = { | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | +}; | ||
| + | + | ||
| + | +/* | ||
| + | + *---------------------------------------------------------------------- | ||
| + | + * | ||
| + | * VNetHubAlloc -- | ||
| + | * | ||
| + | * Allocate a jack on this hub. | ||
| + | @@ -354,7 +400,7 @@ VNetHubAlloc(Bool allocPvn, // IN: TRUE for PVN, FALSE for vnet | ||
| + | * Make proc entry for this jack. | ||
| + | */ | ||
| + | |||
| + | - | ||
| + | + | ||
| + | if (retval) { | ||
| + | if (retval == -ENXIO) { | ||
| + | jack-> | ||
| + | @@ -362,9 +408,6 @@ VNetHubAlloc(Bool allocPvn, // IN: TRUE for PVN, FALSE for vnet | ||
| + | | ||
| + | return NULL; | ||
| + | } | ||
| + | - } else { | ||
| + | - jack-> | ||
| + | - jack-> | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | @@ -686,46 +729,3 @@ VNetHubIsBridged(VNetJack *this) | ||
| + | } | ||
| + | |||
| + | |||
| + | -/* | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - * | ||
| + | - * VNetHubProcRead -- | ||
| + | - * | ||
| + | - * Callback for read operation on hub entry in vnets proc fs. | ||
| + | - * | ||
| + | - * Results: | ||
| + | - * Length of read operation. | ||
| + | - * | ||
| + | - * Side effects: | ||
| + | - * None. | ||
| + | - * | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - */ | ||
| + | - | ||
| + | -int | ||
| + | -VNetHubProcRead(char | ||
| + | - char | ||
| + | - off_t off, // IN: offset of read into the file | ||
| + | - int count, | ||
| + | - int | ||
| + | - void *data) | ||
| + | -{ | ||
| + | - | ||
| + | - | ||
| + | - int len = 0; | ||
| + | - | ||
| + | - if (!jack || !jack-> | ||
| + | - return len; | ||
| + | - } | ||
| + | - hub = (VNetHub*)jack-> | ||
| + | - | ||
| + | - len += VNetPrintJack(jack, | ||
| + | - | ||
| + | - len += sprintf(page+len, | ||
| + | - | ||
| + | - len += sprintf(page+len, | ||
| + | - | ||
| + | - | ||
| + | - | ||
| + | - | ||
| + | -} | ||
| + | --- a/netif.c | ||
| + | +++ b/netif.c | ||
| + | @@ -62,8 +62,6 @@ static int VNetNetifStartXmit(struct sk_buff *skb, struct net_device *dev); | ||
| + | | ||
| + | | ||
| + | | ||
| + | -static int VNetNetIfProcRead(char *page, char **start, off_t off, | ||
| + | - int count, int *eof, void *data); | ||
| + | |||
| + | /* | ||
| + | *---------------------------------------------------------------------- | ||
| + | @@ -116,6 +114,53 @@ VNetNetIfSetup(struct net_device *dev) // IN: | ||
| + | |||
| + | } | ||
| + | |||
| + | +/* | ||
| + | + *---------------------------------------------------------------------- | ||
| + | + * | ||
| + | + * VNetNetIfProcShow -- | ||
| + | + * | ||
| + | + * Callback for read operation on this netif entry in vnets proc fs. | ||
| + | + * | ||
| + | + * Results: | ||
| + | + * Length of read operation. | ||
| + | + * | ||
| + | + * Side effects: | ||
| + | + * None. | ||
| + | + * | ||
| + | + *---------------------------------------------------------------------- | ||
| + | + */ | ||
| + | + | ||
| + | +int | ||
| + | +VNetNetIfProcShow(struct seq_file *seqf, // IN/OUT: buffer to write into | ||
| + | + void | ||
| + | +{ | ||
| + | + | ||
| + | + | ||
| + | + if (!netIf) { | ||
| + | + return 0; | ||
| + | + } | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | +} | ||
| + | + | ||
| + | +static int proc_netif_open(struct inode *inode, struct file *file) | ||
| + | +{ | ||
| + | + | ||
| + | +} | ||
| + | + | ||
| + | +static const struct file_operations proc_netif_fops = { | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | +}; | ||
| + | + | ||
| + | |||
| + | /* | ||
| + | *---------------------------------------------------------------------- | ||
| + | @@ -180,16 +225,13 @@ VNetNetIf_Create(char *devName, | ||
| + | * Make proc entry for this jack. | ||
| + | */ | ||
| + | |||
| + | - | ||
| + | - & | ||
| + | + | ||
| + | + & | ||
| + | if (retval) { | ||
| + | | ||
| + | if (retval != -ENXIO) { | ||
| + | goto outFreeDev; | ||
| + | } | ||
| + | - } else { | ||
| + | - netIf-> | ||
| + | - netIf-> | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | @@ -553,45 +595,3 @@ VNetNetifGetStats(struct net_device *dev) // IN: | ||
| + | return & | ||
| + | } | ||
| + | |||
| + | - | ||
| + | -/* | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - * | ||
| + | - * VNetNetIfProcRead -- | ||
| + | - * | ||
| + | - * Callback for read operation on this netif entry in vnets proc fs. | ||
| + | - * | ||
| + | - * Results: | ||
| + | - * Length of read operation. | ||
| + | - * | ||
| + | - * Side effects: | ||
| + | - * None. | ||
| + | - * | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - */ | ||
| + | - | ||
| + | -int | ||
| + | -VNetNetIfProcRead(char | ||
| + | - char **start, // OUT: 0 if file < 4k, else offset into page | ||
| + | - off_t | ||
| + | - int | ||
| + | - int *eof, // OUT: TRUE if there is nothing more to read | ||
| + | - void | ||
| + | -{ | ||
| + | - | ||
| + | - int len = 0; | ||
| + | - | ||
| + | - if (!netIf) { | ||
| + | - return len; | ||
| + | - } | ||
| + | - | ||
| + | - len += VNetPrintPort(& | ||
| + | - | ||
| + | - len += sprintf(page+len, | ||
| + | - | ||
| + | - len += sprintf(page+len, | ||
| + | - | ||
| + | - | ||
| + | - | ||
| + | - | ||
| + | -} | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -45,10 +45,6 @@ | ||
| + | |||
| + | #if defined(CONFIG_PROC_FS) | ||
| + | |||
| + | -static int VNetProcMakeEntryInt(VNetProcEntry *parent, char *name, int mode, | ||
| + | - VNetProcEntry **ret); | ||
| + | -static void VNetProcRemoveEntryInt(VNetProcEntry *node, VNetProcEntry *parent); | ||
| + | - | ||
| + | | ||
| + | |||
| + | |||
| + | @@ -71,7 +67,12 @@ static VNetProcEntry *base = NULL; | ||
| + | int | ||
| + | | ||
| + | { | ||
| + | - | ||
| + | + base = proc_mkdir(" | ||
| + | + if(IS_ERR(base)) { | ||
| + | + base = NULL; | ||
| + | + return PTR_ERR(base); | ||
| + | + } | ||
| + | + return 0; | ||
| + | } | ||
| + | |||
| + | |||
| + | @@ -94,14 +95,14 @@ VNetProc_Init(void) | ||
| + | | ||
| + | | ||
| + | { | ||
| + | - | ||
| + | + | ||
| + | base = NULL; | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | *---------------------------------------------------------------------- | ||
| + | * | ||
| + | - * VNetProcMakeEntryInt -- | ||
| + | + * VNetProc_MakeEntryOps -- | ||
| + | * | ||
| + | * Make an entry in the vnets proc file system. | ||
| + | * | ||
| + | @@ -116,72 +117,21 @@ VNetProc_Cleanup(void) | ||
| + | */ | ||
| + | |||
| + | int | ||
| + | -VNetProcMakeEntryInt(VNetProcEntry | ||
| + | - | ||
| + | +VNetProc_MakeEntryOps(char | ||
| + | | ||
| + | - | ||
| + | + | ||
| + | + const struct file_operations *fops, | ||
| + | + void *data | ||
| + | + | ||
| + | { | ||
| + | VNetProcEntry *ent; | ||
| + | - ent = create_proc_entry(name, | ||
| + | + ent = proc_create_data(name, | ||
| + | *ret = ent; | ||
| + | if (!ent) | ||
| + | | ||
| + | return 0; | ||
| + | } | ||
| + | |||
| + | - | ||
| + | -/* | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - * | ||
| + | - * VNetProcRemoveEntryInt -- | ||
| + | - * | ||
| + | - * Remove a previously installed proc entry. | ||
| + | - * | ||
| + | - * Results: | ||
| + | - * None. | ||
| + | - * | ||
| + | - * Side effects: | ||
| + | - * None. | ||
| + | - * | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - */ | ||
| + | - | ||
| + | -void | ||
| + | -VNetProcRemoveEntryInt(VNetProcEntry *node, | ||
| + | - | ||
| + | -{ | ||
| + | - if (node) { | ||
| + | - remove_proc_entry(node-> | ||
| + | - } | ||
| + | -} | ||
| + | - | ||
| + | - | ||
| + | -/* | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - * | ||
| + | - * VNetProc_MakeEntry -- | ||
| + | - * | ||
| + | - * Make an entry in the vnets proc file system. | ||
| + | - * | ||
| + | - * Results: | ||
| + | - * errno. If errno is 0 and ret is non NULL then ret is filled | ||
| + | - * in with the resulting proc entry. | ||
| + | - * | ||
| + | - * Side effects: | ||
| + | - * None. | ||
| + | - * | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - */ | ||
| + | - | ||
| + | -int | ||
| + | -VNetProc_MakeEntry(char | ||
| + | - | ||
| + | - | ||
| + | -{ | ||
| + | - | ||
| + | -} | ||
| + | - | ||
| + | - | ||
| + | /* | ||
| + | *---------------------------------------------------------------------- | ||
| + | * | ||
| + | @@ -201,7 +151,8 @@ VNetProc_MakeEntry(char | ||
| + | | ||
| + | | ||
| + | { | ||
| + | - | ||
| + | + if(node) | ||
| + | + proc_remove(node); | ||
| + | } | ||
| + | |||
| + | |||
| + | @@ -253,31 +204,6 @@ VNetProc_Cleanup(void) | ||
| + | } | ||
| + | |||
| + | |||
| + | -/* | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - * | ||
| + | - * VNetProc_MakeEntry -- | ||
| + | - * | ||
| + | - * Make an entry in the vnets proc file system. | ||
| + | - * | ||
| + | - * Results: | ||
| + | - * errno. If errno is 0 and ret is non NULL then ret is filled | ||
| + | - * in with the resulting proc entry. | ||
| + | - * | ||
| + | - * Side effects: | ||
| + | - * None. | ||
| + | - * | ||
| + | - *---------------------------------------------------------------------- | ||
| + | - */ | ||
| + | - | ||
| + | -int | ||
| + | -VNetProc_MakeEntry(char | ||
| + | - | ||
| + | - | ||
| + | -{ | ||
| + | - | ||
| + | -} | ||
| + | - | ||
| + | |||
| + | /* | ||
| + | *---------------------------------------------------------------------- | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -389,7 +389,7 @@ VNetUserIfReceive(VNetJack | ||
| + | /* | ||
| + | *---------------------------------------------------------------------- | ||
| + | * | ||
| + | - * VNetUserIfProcRead -- | ||
| + | + * VNetUserIfProcShow -- | ||
| + | * | ||
| + | * Callback for read operation on this userif entry in vnets proc fs. | ||
| + | * | ||
| + | @@ -403,30 +403,23 @@ VNetUserIfReceive(VNetJack | ||
| + | */ | ||
| + | |||
| + | | ||
| + | -VNetUserIfProcRead(char | ||
| + | - | ||
| + | - // | ||
| + | - | ||
| + | - | ||
| + | - | ||
| + | - // | ||
| + | +VNetUserIfProcShow(struct seq_file | ||
| + | void *data) | ||
| + | { | ||
| + | VNetUserIF *userIf = (VNetUserIF*)data; | ||
| + | - int len = 0; | ||
| + | |||
| + | if (!userIf) { | ||
| + | - return len; | ||
| + | + return 0; | ||
| + | } | ||
| + | |||
| + | - len += VNetPrintPort(& | ||
| + | + | ||
| + | |||
| + | - len += sprintf(page+len, | ||
| + | + | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | - len += sprintf(page+len, | ||
| + | + | ||
| + | | ||
| + | | ||
| + | | ||
| + | @@ -434,13 +427,23 @@ VNetUserIfProcRead(char | ||
| + | | ||
| + | | ||
| + | |||
| + | - len += sprintf(page+len, | ||
| + | + | ||
| + | |||
| + | - | ||
| + | - | ||
| + | - | ||
| + | + | ||
| + | +} | ||
| + | + | ||
| + | +static int proc_userif_open(struct inode *inode, struct file *file) | ||
| + | +{ | ||
| + | + | ||
| + | } | ||
| + | |||
| + | +static const struct file_operations proc_userif_fops = { | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | + | ||
| + | +}; | ||
| + | + | ||
| + | |||
| + | /* | ||
| + | *---------------------------------------------------------------------- | ||
| + | @@ -1036,8 +1039,8 @@ VNetUserIf_Create(VNetPort **ret) // OUT | ||
| + | * Make proc entry for this jack. | ||
| + | */ | ||
| + | |||
| + | - | ||
| + | - & | ||
| + | + | ||
| + | + & | ||
| + | if (retval) { | ||
| + | if (retval == -ENXIO) { | ||
| + | userIf-> | ||
| + | @@ -1045,9 +1048,6 @@ VNetUserIf_Create(VNetPort **ret) // OUT | ||
| + | kfree(userIf); | ||
| + | return retval; | ||
| + | } | ||
| + | - } else { | ||
| + | - userIf-> | ||
| + | - userIf-> | ||
| + | } | ||
| + | |||
| + | /* | ||
| + | --- a/ | ||
| + | +++ b/ | ||
| + | @@ -171,12 +171,14 @@ VNetJack *VNetDisconnect(VNetJack *jack); | ||
| + | |||
| + | void VNetSend(const VNetJack *jack, struct sk_buff *skb); | ||
| + | |||
| + | -int VNetProc_MakeEntry(char *name, int mode, | ||
| + | - | ||
| + | +int VNetProc_MakeEntryOps(char *name, int mode, | ||
| + | + | ||
| + | + const struct file_operations *fops, | ||
| + | + void *data); | ||
| + | |||
| + | void VNetProc_RemoveEntry(VNetProcEntry *node); | ||
| + | |||
| + | -int VNetPrintJack(const VNetJack *jack, char *buf); | ||
| + | +void VNetPrintJack(const VNetJack *jack, struct seq_file *seqf); | ||
| + | |||
| + | int VNet_MakeMACAddress(VNetPort *port); | ||
| + | |||
| + | @@ -196,7 +198,7 @@ Bool VNetPacketMatch(const uint8 *destAddr, const uint8 *ifAddr, | ||
| + | |||
| + | Bool VNetCycleDetectIf(const char *name, int generation); | ||
| + | |||
| + | -int VNetPrintPort(const VNetPort *port, char *buf); | ||
| + | +void VNetPrintPort(const VNetPort *port, struct seq_file *seqf); | ||
| + | |||
| + | int VNetSnprintf(char *str, size_t size, const char *format, ...); | ||
| + | |||
| + | -- | ||
| + | </ | ||
| + | - patch source files | ||
| + | - change directory\\ <code bash>cd / | ||
| + | - copy files to desktop\\ <code bash>cp vmnet.tar vmblock.tar ~/ | ||
| + | - change directory\\ <code bash>cd ~/ | ||
| + | - extract tar-archives\\ <code bash>tar xvf vm*.tar</ | ||
| + | - change directory\\ <code bash>cd vmnet-only</ | ||
| + | - patch vmnet-files\\ <code bash> | ||
| + | - change directory\\ <code bash>cd ../ | ||
| + | - patch vmblock-files\\ <code bash> | ||
| + | - recreate archives\\ <code bash>tar cvf vmnet.tar vmnet-only | ||
| + | tar cvf vmblock.tar vmblock-only</ | ||
| + | - change directory\\ <code bash>cd / | ||
| + | - create backups\\ <code bash>cp vmnet.tar vmnet.tar.bak | ||
| + | cp vmblock.tar vmblock.tar.bak</ | ||
| + | - copy files\\ <code bash>cp / | ||
| + | - compile VMware kernel modules\\ <code bash> | ||
snippets/vmware/fedora-compiler-error.1378212863.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
