[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
src
/
file_protector-1.1-1589
/
transport
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 device.c
1,233 B
SET
[ EDIT ]
|
[ DEL ]
📄 device.h
257 B
SET
[ EDIT ]
|
[ DEL ]
📄 exec_event.c
7,518 B
SET
[ EDIT ]
|
[ DEL ]
📄 exec_event.h
391 B
SET
[ EDIT ]
|
[ DEL ]
📄 exit_event.c
1,535 B
SET
[ EDIT ]
|
[ DEL ]
📄 exit_event.h
291 B
SET
[ EDIT ]
|
[ DEL ]
📄 fork_event.c
9,026 B
SET
[ EDIT ]
|
[ DEL ]
📄 fork_event.h
360 B
SET
[ EDIT ]
|
[ DEL ]
📄 fs_event.c
37,830 B
SET
[ EDIT ]
|
[ DEL ]
📄 fs_event.h
3,674 B
SET
[ EDIT ]
|
[ DEL ]
📄 message.c
22,398 B
SET
[ EDIT ]
|
[ DEL ]
📄 message.h
4,170 B
SET
[ EDIT ]
|
[ DEL ]
📄 ring.h
2,347 B
SET
[ EDIT ]
|
[ DEL ]
📄 set.h
1,911 B
SET
[ EDIT ]
|
[ DEL ]
📄 subtype.h
4,354 B
SET
[ EDIT ]
|
[ DEL ]
📄 thread_safe_path.h
2,330 B
SET
[ EDIT ]
|
[ DEL ]
📄 transport.c
77,315 B
SET
[ EDIT ]
|
[ DEL ]
📄 transport.h
5,314 B
SET
[ EDIT ]
|
[ DEL ]
📄 transport_id.h
1,789 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: device.c
/** @file @brief 'transport' device @details Copyright (c) 2017 Acronis International GmbH @author Mikhail Krivtsov (mikhail.krivtsov@acronis.com) @since $Id: $ */ #include "device.h" #include "debug.h" // DPRINTF #include "memory.h" #include "transport.h" #include "transport_protocol.h" #include <linux/errno.h> // error codes: ENOMEM #include <linux/fs.h> #include <linux/miscdevice.h> static const struct file_operations operations = { .owner = THIS_MODULE, .open = transport_device_open, #ifdef HAVE_NO_LLSEEK .llseek = no_llseek, #endif .read = transport_device_read, .write = transport_device_write, .unlocked_ioctl = transport_device_ioctl, .release = transport_device_release, .mmap = transport_device_mmap, }; static struct miscdevice miscdevice = { .minor = MISC_DYNAMIC_MINOR, .name = TRANSPORT_DEVICE_NAME, .fops = &operations, }; int __init device_mod_init(void) { int ret; ret = misc_register(&miscdevice); if (ret) { EPRINTF("'misc_register()' failure %i", ret); goto out; } DPRINTF("miscdevice.minor=%i", miscdevice.minor); // Note: 'ret' is already 0 here out: return ret; } void device_mod_down(void) { DPRINTF(""); misc_deregister(&miscdevice); DPRINTF(""); }