I added the case numbers of the Index to Habeas Corpus Cases for the US District Court for the Northern District of California, San Francisco.
Corresponding immigration index cards from " Register of Federal Court Cases Related to Chinese Americans and Chinese Immigrants Arriving at or Departing From San Francisco, California, ca. 1883-ca. 1916, and Head Tax Cards of Alien Seamen Examined at San Francisco, California, 1921-1924".I have also included examples of Habeas Corpus file numbers and immigration index cards that do NOT match. This register is most useful to researchers who have located a court case file and want to know if an individual had a corresponding INS case file.
You can search Ancestry.com for immigration index cards in U.S., Chinese Immigration Case Files, 1883-1924 - National Archives and Records Administration; Washington D.C.; Register of Federal Court Cases Related to Chinese Americans and Chinese Immigrants Arriving at or Departing from San Francisco, California, ca. 1883-ca. 1916; National Archives Microfilm Publication: A3381; Roll: 1; Record Group Title: Records of the Immigration and Naturalization Service; Record Group Number: 85.
California, Passenger and Crew Lists, 1882-1957> from Ancestry.com