Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve error: 'dev_base_lock' undeclared #295

Open
l0veormiss opened this issue Jan 2, 2025 · 3 comments
Open

Solve error: 'dev_base_lock' undeclared #295

l0veormiss opened this issue Jan 2, 2025 · 3 comments

Comments

@l0veormiss
Copy link

Because after we use the script to obtain the code, a "dev_base_lock undeclared" code error occurs during compilation. Let's solve this code error problem.

#Switch root user
cd /tmp/patch-vmware/vmware-host-modules/vmnet-only
vim vmnetInt.h

#define read_lock_list() read_lock(&dev_base_lock)
#define read_unlock_list() read_unlock(&dev_base_lock)

change

#define read_lock_list() rcu_read_lock()
#define read_unlock_list() rcu_read_unlock()

cd /tmp/patch-vmware/vmware-host-modules
make
make install
modprobe vmmon vmnet

#Now start vmware

@l0veormiss
Copy link
Author

lol

@sudo-arash
Copy link

Bravo

@sudo-arash
Copy link

I just did made this into a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants