freeipmi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freeipmi-devel] kcs library with synchronization


From: Albert Chu
Subject: [Freeipmi-devel] kcs library with synchronization
Date: Fri, 19 Mar 2004 08:39:57 -0800

Hey everyone,

I thought about it a bit, and I think the following may be best for the
KCS library to handle our sync issue.

ipmi_kcs_cmd(port, req_data, req_data_len, res_data, res_data_len);
ipmi_kcs_clean_locks();
ipmi_kcs_setup_cleanup_signal_handler(signum);
ipmi_kcs_setup_default_cleanup_signal_handlers();

ipmi_kcs_cmd - handles the read and write, handles the sync stuff.

ipmi_kcs_clean_locks - unlocks any locks current process has.  Primarily
for users to implement within their signal handlers.

ipmi_kcs_setup_cleanup_signal_handler - let libfreeipmi setup the
cleanup signal handler for the user instead.  The signal handler just
calls ipmi_kcs_clean_locks.

ipmi_kcs_setup_default_cleanup_signal_handlers - calls
ipmi_kcs_setuP_cleanup_signal_handler for the most common signals.

Al

--
Albert Chu
address@hidden
Lawrence Livermore National Laboratory





reply via email to

[Prev in Thread] Current Thread [Next in Thread]