Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/src/linux_compat.c
Context not available. | |||||
} | } | ||||
int | int | ||||
linux_access_ok(int rw, const void *uaddr, size_t len) | linux_access_ok(const void *uaddr, size_t len) | ||||
{ | { | ||||
uintptr_t saddr; | uintptr_t saddr; | ||||
uintptr_t eaddr; | uintptr_t eaddr; | ||||
Context not available. | |||||
&linux_timer_callback_wrapper, timer, cpu); | &linux_timer_callback_wrapper, timer, cpu); | ||||
} | } | ||||
int | |||||
del_timer(struct timer_list *timer) | |||||
{ | |||||
if (callout_stop(&(timer)->callout) == -1) | |||||
return (0); | |||||
return (1); | |||||
} | |||||
static void | static void | ||||
linux_timer_init(void *arg) | linux_timer_init(void *arg) | ||||
{ | { | ||||
Context not available. | |||||
for (i = baseminor; i < baseminor + count; i++) { | for (i = baseminor; i < baseminor + count; i++) { | ||||
cdev = cdev_alloc(); | cdev = cdev_alloc(); | ||||
cdev_init(cdev, fops); | cdev->ops = fops; | ||||
kobject_set_name(&cdev->kobj, name); | kobject_set_name(&cdev->kobj, name); | ||||
ret = cdev_add(cdev, makedev(major, i), 1); | ret = cdev_add(cdev, makedev(major, i), 1); | ||||
Context not available. | |||||
for (i = baseminor; i < baseminor + count; i++) { | for (i = baseminor; i < baseminor + count; i++) { | ||||
cdev = cdev_alloc(); | cdev = cdev_alloc(); | ||||
cdev_init(cdev, fops); | cdev->ops = fops; | ||||
kobject_set_name(&cdev->kobj, name); | kobject_set_name(&cdev->kobj, name); | ||||
ret = cdev_add_ext(cdev, makedev(major, i), uid, gid, mode); | ret = cdev_add_ext(cdev, makedev(major, i), uid, gid, mode); | ||||
Context not available. |