https://github.com/iciclef/maple_tree_port
An attempt to port maple tree from Orace Linux UEK (5.17-rc4) to 4.15.0.
https://github.com/iciclef/maple_tree_port
Last synced: 3 months ago
JSON representation
An attempt to port maple tree from Orace Linux UEK (5.17-rc4) to 4.15.0.
- Host: GitHub
- URL: https://github.com/iciclef/maple_tree_port
- Owner: IcicleF
- License: gpl-2.0
- Created: 2022-02-24T05:49:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-01T13:25:09.000Z (over 3 years ago)
- Last Synced: 2025-01-15T02:58:04.108Z (5 months ago)
- Language: C
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# maple_tree_port
This project is an attempt to port maple tree from Orace Linux UEK (5.17-rc4) to Linux kernel version 4.15.0.
## Usage
```bash
make
sudo insmod maple.ko
dmesg | grep maple
```User-space code:
```cpp
static const int MAPLE_LOCK = 0, MAPLE_UNLOCK = 1;
int fd = open("/dev/maple_tree_dev", O_RDONLY);unsigned long left = 0, right = 5; // [0, 5)
int ret = ioctl(fd, MAPLE_LOCK, (right << 32) | left); // compose the range into uint64_t
int ret = ioctl(fd, MAPLE_UNLOCK, left); // any integer within [0, 5)close(fd);
```