Subversion Repositories Kolibri OS

Rev

Rev 6057 | Rev 6089 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6057 Rev 6079
Line 4756... Line 4756...
4756
        6 - Send ARP announce on specified interface
4756
        6 - Send ARP announce on specified interface
4757
        7 - Read # ARP conflicts (IP address conflicts) 
4757
        7 - Read # ARP conflicts (IP address conflicts)
Line 4758... Line 4758...
4758
 
4758
 
4759
---------------------- Constants for registers: ----------------------
4759
---------------------- Constants for registers: ----------------------
-
 
4760
  eax - SF_NETWORK_PROTOCOL (76)
-
 
4761
 
-
 
4762
======================================================================
-
 
4763
========== Function 77, Subfunction 0, Create futex object ===========
-
 
4764
======================================================================
-
 
4765
Parameters:
-
 
4766
  * eax = 77 - function number
-
 
4767
  * ebx = 0 - subfunction number
-
 
4768
  * ecx = pointer to futex dword
-
 
4769
Returned value:
-
 
4770
  * eax = futex handle, 0 on error
-
 
4771
Remarks:
-
 
4772
  * Use subfunction 1 to destroy the futex.
-
 
4773
    The kernel destroys the futexes automatically when the process
-
 
4774
    terminates.
-
 
4775
======================================================================
-
 
4776
========= Function 77, Subfunction 1, Destroy futex object ===========
-
 
4777
======================================================================
-
 
4778
Parameters:
-
 
4779
  * eax = 77 - function number
-
 
4780
  * ebx = 1 - subfunction number
-
 
4781
  * ecx = futex handle
-
 
4782
Returned value:
-
 
4783
  * eax = 0 - successfull, -1 on error
-
 
4784
Remarks:
-
 
4785
  * The futex handle must have been created by subfunction 0
-
 
4786
 
-
 
4787
======================================================================
-
 
4788
=============== Function 77, Subfunction 2, Futex wait ===============
-
 
4789
======================================================================
-
 
4790
Parameters:
-
 
4791
  * eax = 77 - function number
-
 
4792
  * ebx = 2 - subfunction number
-
 
4793
  * ecx = futex handle
-
 
4794
  * edx = control value
-
 
4795
  * esi = timeout in system ticks or 0 for infinity
-
 
4796
Returned value:
-
 
4797
  * eax = 0 - successfull, -1 on timeout
-
 
4798
 
-
 
4799
Remarks:
-
 
4800
  * This functionn tests that the value at the futex dword still
-
 
4801
    contains the expected control value, and if so, then sleeps
-
 
4802
    waiting for a wake operation on the futex.
-
 
4803
  * The futex handle must have been created by subfunction 0
-
 
4804
 
-
 
4805
======================================================================
-
 
4806
=============== Function 77, Subfunction 3, Futex wake ===============
-
 
4807
======================================================================
-
 
4808
Parameters:
-
 
4809
  * eax = 77 - function number
-
 
4810
  * ebx = 3 - subfunction number
-
 
4811
  * ecx = futex handle
-
 
4812
  * edx = number of waiters to wake
-
 
4813
Returned value:
-
 
4814
  * eax = number of waiters that were woken up
-
 
4815
 
-
 
4816
Remarks:
-
 
4817
  * This function wakes at most edx of the waiters that are
-
 
4818
    waiting (e.g., inside futex wait) on the futex dword
-
 
4819
  * The futex handle must have been created by subfunction 0
4760
  eax - SF_NETWORK_PROTOCOL (76)
4820
 
4761
======================================================================
4821
======================================================================
4762
=============== Function -1 - terminate thread/process ===============
4822
=============== Function -1 - terminate thread/process ===============
4763
======================================================================
4823
======================================================================
4764
Parameters:
4824
Parameters: