staging: hv: Convert camel cased local variables in osd.c to lower cases
staging: hv: Convert camel cased local variables in osd.c to lower cases Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Родитель
d44890c8d2
Коммит
d39f12866d
|
@ -130,9 +130,9 @@ EXPORT_SYMBOL_GPL(osd_WaitEventCreate);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* osd_WaitEventSet() - Wake up the process
|
* osd_WaitEventSet() - Wake up the process
|
||||||
* @waitEvent: Structure to event to be woken up
|
* @wait_event: Structure to event to be woken up
|
||||||
*
|
*
|
||||||
* @waitevent is of type &struct osd_waitevent
|
* @wait_event is of type &struct osd_waitevent
|
||||||
*
|
*
|
||||||
* Wake up the sleeping process so it can do some work.
|
* Wake up the sleeping process so it can do some work.
|
||||||
* And set condition indicator in &struct osd_waitevent to indicate
|
* And set condition indicator in &struct osd_waitevent to indicate
|
||||||
|
@ -140,18 +140,18 @@ EXPORT_SYMBOL_GPL(osd_WaitEventCreate);
|
||||||
*
|
*
|
||||||
* Only used by Network and Storage Hyper-V drivers.
|
* Only used by Network and Storage Hyper-V drivers.
|
||||||
*/
|
*/
|
||||||
void osd_WaitEventSet(struct osd_waitevent *waitEvent)
|
void osd_WaitEventSet(struct osd_waitevent *wait_event)
|
||||||
{
|
{
|
||||||
waitEvent->condition = 1;
|
wait_event->condition = 1;
|
||||||
wake_up_interruptible(&waitEvent->event);
|
wake_up_interruptible(&wait_event->event);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(osd_WaitEventSet);
|
EXPORT_SYMBOL_GPL(osd_WaitEventSet);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* osd_WaitEventWait() - Wait for event till condition is true
|
* osd_WaitEventWait() - Wait for event till condition is true
|
||||||
* @waitEvent: Structure to event to be put to sleep
|
* @wait_event: Structure to event to be put to sleep
|
||||||
*
|
*
|
||||||
* @waitevent is of type &struct osd_waitevent
|
* @wait_event is of type &struct osd_waitevent
|
||||||
*
|
*
|
||||||
* Set up the process to sleep until waitEvent->condition get true.
|
* Set up the process to sleep until waitEvent->condition get true.
|
||||||
* And set condition indicator in &struct osd_waitevent to indicate
|
* And set condition indicator in &struct osd_waitevent to indicate
|
||||||
|
@ -161,25 +161,25 @@ EXPORT_SYMBOL_GPL(osd_WaitEventSet);
|
||||||
*
|
*
|
||||||
* Mainly used by Hyper-V drivers.
|
* Mainly used by Hyper-V drivers.
|
||||||
*/
|
*/
|
||||||
int osd_WaitEventWait(struct osd_waitevent *waitEvent)
|
int osd_WaitEventWait(struct osd_waitevent *wait_event)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
ret = wait_event_interruptible(waitEvent->event,
|
ret = wait_event_interruptible(wait_event->event,
|
||||||
waitEvent->condition);
|
wait_event->condition);
|
||||||
waitEvent->condition = 0;
|
wait_event->condition = 0;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(osd_WaitEventWait);
|
EXPORT_SYMBOL_GPL(osd_WaitEventWait);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* osd_WaitEventWaitEx() - Wait for event or timeout for process wakeup
|
* osd_WaitEventWaitEx() - Wait for event or timeout for process wakeup
|
||||||
* @waitEvent: Structure to event to be put to sleep
|
* @wait_event: Structure to event to be put to sleep
|
||||||
* @TimeoutInMs: Total number of Milliseconds to wait before waking up
|
* @timeout_in_ms: Total number of Milliseconds to wait before waking up
|
||||||
*
|
*
|
||||||
* @waitevent is of type &struct osd_waitevent
|
* @wait_event is of type &struct osd_waitevent
|
||||||
* Set up the process to sleep until @waitEvent->condition get true or
|
* Set up the process to sleep until @waitEvent->condition get true or
|
||||||
* @TimeoutInMs (Time out in Milliseconds) has been reached.
|
* @timeout_in_ms (Time out in Milliseconds) has been reached.
|
||||||
* And set condition indicator in &struct osd_waitevent to indicate
|
* And set condition indicator in &struct osd_waitevent to indicate
|
||||||
* the process is in a sleeping state.
|
* the process is in a sleeping state.
|
||||||
*
|
*
|
||||||
|
@ -187,14 +187,14 @@ EXPORT_SYMBOL_GPL(osd_WaitEventWait);
|
||||||
*
|
*
|
||||||
* Mainly used by Hyper-V drivers.
|
* Mainly used by Hyper-V drivers.
|
||||||
*/
|
*/
|
||||||
int osd_WaitEventWaitEx(struct osd_waitevent *waitEvent, u32 TimeoutInMs)
|
int osd_WaitEventWaitEx(struct osd_waitevent *wait_event, u32 timeout_in_ms)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
ret = wait_event_interruptible_timeout(waitEvent->event,
|
ret = wait_event_interruptible_timeout(wait_event->event,
|
||||||
waitEvent->condition,
|
wait_event->condition,
|
||||||
msecs_to_jiffies(TimeoutInMs));
|
msecs_to_jiffies(timeout_in_ms));
|
||||||
waitEvent->condition = 0;
|
wait_event->condition = 0;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(osd_WaitEventWaitEx);
|
EXPORT_SYMBOL_GPL(osd_WaitEventWaitEx);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче