From 2552bd5c12a5aff93fde5d68332392ff2700a3ba Mon Sep 17 00:00:00 2001 From: Joern Adamczewski-Musch Date: Thu, 30 Oct 2025 11:02:11 +0100 Subject: [PATCH] adjust pexor kernel module for kernel 6.17.5-1-default --- pexor/kernel-module/pexor_trb.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pexor/kernel-module/pexor_trb.c b/pexor/kernel-module/pexor_trb.c index 05275bf..1fa0dd6 100644 --- a/pexor/kernel-module/pexor_trb.c +++ b/pexor/kernel-module/pexor_trb.c @@ -215,6 +215,12 @@ static int pexor_ioctl_trbnet_request(struct pexor_privdata* priv, unsigned long arg ); +int pexor_copy_fifo_to_dma(struct pexor_privdata* priv, + unsigned int channel); + +int pexor_flush_fifo(struct pexor_privdata* priv, + unsigned int channel); + static void remove(struct pci_dev* dev); static int __init pexor_init(void); @@ -1053,8 +1059,13 @@ int __init pexor_init(void) return result; #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18) - pexor_class = class_create(THIS_MODULE, PEXOR_NAME); - if (IS_ERR(pexor_class)) { + + #if LINUX_VERSION_CODE <= KERNEL_VERSION(6,4,0) + pexor_class = class_create (THIS_MODULE, PEXOR_NAME); +#else + pexor_class = class_create (PEXOR_NAME); +#endif +if (IS_ERR(pexor_class)) { pexor_msg(KERN_ALERT "Could not create class for sysfs support!\n"); } #endif -- 2.51.0