can i use an inline exhaust to vent a kitchen and bathroom?
International Mechanical Code 2012
  
  Chapter 4 Ventilation
  
  Section 401 General
  
  401.1 Scope. 
  This chapter shall govern the ventilation of spaces within a building intended to be occupied. Mechanical exhaust systems, including exhaust systems serving clothes dryers and cooking appliances; hazardous exhaust systems; dust, stock and refuse conveyor systems; subslab soil exhaust systems; smoke control systems; energy recovery ventilation systems and other systems specified in Section 502 shall comply with Chapter 5. 
  
  Chapter 5 Exhaust Systems
  
  Section 505 Domestic Kitchen Exhaust Equipment
  
  505.1 Domestic systems.
  Where domestic range hoods and domestic appliances equipped with downdraft exhaust are located within dwelling units, such hoods and appliances shall discharge to the outdoors through sheet metal ducts constructed of galvanized steel, stainless steel, aluminum or copper. Such ducts shall have smooth inner walls, shall be air tight, shall be equipped with a backdraft damper, and shall be independent of all other exhaust systems.


Chapter 4 says you cannot use the same ducting for ventilation, as you do for your range exhaust.  Chapter 5 is quite explicit in what materials should be used for the range exhaust ducting, and also says that the ducting cannot be shared.  If you're using the ventilation ducting between two or more spaces, you'll have to be sure the fan and ducting are both adequate to move the amount of air required.  you'll also have to insure there is an adequate supply of makeup air.

NOTE: Local codes may vary. Contact your local government for all applicable codes.