| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
* transport.c (_stp_handle_start): Grab semaphore before
calling probe_start() and release after it is done.
(_stp_handle_exit): Ditto for exiting. This prevents
exiting before probe_start() is finished.
|
| |
|
| |
|
|
|
|
|
|
| |
* procfs.c (_stp_register_procfs): Change ifdefs to eliminate
unused variable warnings.
(_stp_unregister_procfs): Ditto.
|
|
|
|
|
| |
* transport.c (_stp_handle_start): Always reply to
a start message with STP_START.
|
|
|
|
| |
* transport_msgs.h (enum): New type, STP_OOB_DATA.
|
|
|
|
|
|
|
|
|
| |
* transport.c (_stp_cleanup_and_exit): Remove a 2 second sleep
that should no longer be necessary.
* procfs.c (_stp_write): If the ready queue is not empty
then attempt to grab the last buffer in it and append our data
to it.
|
| |
|
|
|
|
|
|
| |
* transport.h: Don't define _stp_transport_write.
* transport.c (_stp_transport_write): Use
_stp_transport_send() when in probe_exit().
|
|
|
|
|
|
|
|
|
|
| |
* transport.c (_stp_cmd_handler): Remove. This was used by
stp-control.
* procfs.c (_stp_proc_write_cmd): Call schedule_work() instead
of running _stp_exit_handler immediately. Fixes a problem where
the module couldn't exit if all the output buffers were full.
Set .owner for the filesystem entries.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* transport.h: Remove netlink references.
* transport.c: Remove netlink references. Ifdef relayfs code.
* procfs.c: New file.
* Makefile: Deleted.
* control.c: Deleted.
* control.h: Deleted.
* netlink.c: Deleted.
* netlink.h: Deleted.
|
|
|
|
| |
* transport.c: Comment out a couple printks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* control.h: Remove STP commands from here and put in
transport_msgs.
* transport_msgs.h: New file containing the structs and
values for the messages exchanged between stpd and transport.
* transport.h: Moved stuff shared with stpd to transport_msgs.h
* transport.c: Complete rewrite to better handle complicated
initialization involving exchanging data with stpd. Supports
buffer size negotiation and more.
|
|
|
|
|
|
|
|
|
| |
* transport.h (_stp_transport_write): Call _stp_relay_write().
* transport.c (_stp_cleanup_and_exit): Print transport
failure count.
(_stp_relay_write): Like relay_write() except returns
-1 on error.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* transport.c: Rename pid to _stp_pid.
Rename t to _stp_tport.
(_stp_cleanup_and_exit): New internal function.
(stp_exit_helper): Call _stp_cleanup_and_exit().
(_stp_transport_cleanup): New function.
(_stp_cmd_handler): Remove handler for STP_TRANSPORT_MODE.
The transport now notifies the daemon of the transport.
(_stp_transport_close): No longer calls _stp_exit_helper().
That is done by _stp_transport_cleanup().
(_stp_transport_open): When done, call _stp_handle_transport()
to notify the daemon what our transport is.
(_stp_transport_send): Put a retry limit on sends.
* transport.h: Rename pid to _stp_pid.
(_stp_transport_cleanup): Add prototype.
|
|
|
|
|
| |
* transport.h: Move all the transport open stuff here
and provide a convenient macro.
|
|
|
|
|
| |
* control.c: Replace macro DEFINE_SPINLOCK because
some kernels don't have it.
|
| |
|
|
|
|
|
| |
* transport.c (_stp_transport_close): Call stp_exit_helper()
directly instead of using work queue.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* transport.c (_stp_cmd_handler): For STP_EXIT, schedule a
work queue to do the exit functions.
(_stp_transport_close): Call work queue for STP_EXIT.
(_stp_transport_send): Call _stp_ctrl_send() like before, except
when in probe_exit(). In that case, keep retrying on send errors
until we succeed.
* transport.h (_stp_transport_write): Change to call
_stp_transport_send() for NETLINK_ONLY.
* Makefile (KDIR): set to /lib/modules/... instead of
/usr/local/src/...
|
|
|